From 29b287ee9fb4a2be4fd66277963f5c5e9c4ad2cf Mon Sep 17 00:00:00 2001 From: Aneesh-M-Bhat Date: Tue, 17 Sep 2024 17:09:43 +0530 Subject: [PATCH] Removed ls & added support for args --- templates/load-scripts.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/load-scripts.tpl b/templates/load-scripts.tpl index c7387bc..82e5fbf 100644 --- a/templates/load-scripts.tpl +++ b/templates/load-scripts.tpl @@ -14,12 +14,11 @@ set -e printf '%s' "{{ $content | toString | b64enc }}" |base64 -d >"/scripts/{{ $name }}" {{- end }} {{- end }} -ls /scripts/{{ $prefix }}*.sh; chmod +x /scripts/{{ $prefix }}*.sh; {{- end }} {{- range $i, $script := index . 2 -}} echo "Running Script {{ $script }}"; - {{ $script }}; + {{ $script }} $@; {{- end }} {{- end -}}