YoBatM commited on
Commit
12a25d1
·
verified ·
1 Parent(s): e5aafbf

Update load.sh

Browse files
Files changed (1) hide show
  1. load.sh +1 -1
load.sh CHANGED
@@ -13,7 +13,7 @@ archivo_salida=$2
13
  json=$(curl -s "$url_json")
14
  echo "$json"
15
  # Extrae el valor del campo 'file'
16
- file=$(echo "$json" | jq -r '.file')
17
 
18
  # Verifica si el campo 'file' está vacío
19
  if [ -z "$file" ]; then
 
13
  json=$(curl -s "$url_json")
14
  echo "$json"
15
  # Extrae el valor del campo 'file'
16
+ file=$(echo "$json"| tr -cd "[:print:]" | jq -r '.file')
17
 
18
  # Verifica si el campo 'file' está vacío
19
  if [ -z "$file" ]; then