diff --git a/scripts/cron-tasks.sh b/scripts/cron-tasks.sh index aaf188a..de4614a 100755 --- a/scripts/cron-tasks.sh +++ b/scripts/cron-tasks.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -e -[[ ! -z "$DEBUG" ]] && set -x +[[ -n "$DEBUG" ]] && set -x source /nextcloud-exec.sh @@ -24,7 +24,7 @@ run_scripts_in_dir() { find . -type f -name '*.sh' -print0 | while IFS= read -r -d '' file; do echo "> Running Script: $file" - nextcloud_exec "$containerId" "$(cat $file)" || continue + nextcloud_exec "$containerId" "$(cat "$file")" || continue done }