diff --git a/bahmcloud_store_installer/run.sh b/bahmcloud_store_installer/run.sh index 76092ca..35ee43d 100644 --- a/bahmcloud_store_installer/run.sh +++ b/bahmcloud_store_installer/run.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -ZIP_URL="$(cat /data/options.json | sed -n 's/.*"store_component_zip"[ ]*:[ ]*"\([^"]*\)".*/\1/p')" +ZIP_URL="$(grep -o '"store_component_zip"[[:space:]]*:[[:space:]]*"[^"]*"' /data/options.json | sed 's/.*"store_component_zip"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/')" TARGET="/config/custom_components/bahmcloud_store" echo "Downloading: $ZIP_URL"