YoBatM commited on
Commit
37d6bfd
·
verified ·
1 Parent(s): 9ff3f3d

Update recover.sh

Browse files
Files changed (1) hide show
  1. recover.sh +2 -1
recover.sh CHANGED
@@ -13,9 +13,10 @@ if [ ! -f "$archivo_entrada" ]; then
13
  echo "El archivo $archivo_entrada no existe."
14
  exit 0
15
  fi
 
16
 
17
  # Leer el archivo línea por línea
18
- for linea in $(cat $archivo_entrada); do
19
  nombre=$(echo "$linea" | cut -d ":" -f1)
20
  echo "Recuperando $nombre"
21
  valor=$(echo "$linea" | cut -d ":" -f2)
 
13
  echo "El archivo $archivo_entrada no existe."
14
  exit 0
15
  fi
16
+ files=$(cat "$archivo_entrada")
17
 
18
  # Leer el archivo línea por línea
19
+ for linea in $files; do
20
  nombre=$(echo "$linea" | cut -d ":" -f1)
21
  echo "Recuperando $nombre"
22
  valor=$(echo "$linea" | cut -d ":" -f2)