From bd3744a67f6457a73e131b1a8d19bf31e61e90e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pettersson?= Date: Sun, 4 Jun 2023 22:55:38 +0200 Subject: [PATCH] Shebang tests --- cron-scripts/10-test.sh | 2 +- guix-template.scm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cron-scripts/10-test.sh b/cron-scripts/10-test.sh index d7e39e4..71937ad 100755 --- a/cron-scripts/10-test.sh +++ b/cron-scripts/10-test.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env -S guix shell -- bash +#!/usr/bin/env -S guix shell bash -- bash set -x diff --git a/guix-template.scm b/guix-template.scm index 70f8ceb..e3ea630 100644 --- a/guix-template.scm +++ b/guix-template.scm @@ -18,7 +18,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFAUQBM+p7ET8XRQE+UN6wa9DxQTMWlqErny7URZRtKE ")) (let ((output-port (open-file "/data/cronjob.sh" "w"))) - (display "#!/usr/bin/env -S guix shell -- bash + (display "#!/usr/bin/env -S guix shell bash -- bash set -x @@ -44,7 +44,7 @@ cd cron-scripts find . -type f -executable | sort | while read script do echo running $script - ./$script + $script done " output-port) (newline output-port)