Spaces:
Running
Running
Update load.sh
Browse files
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
|