Browse Source

Shebang tests

main
Björn Pettersson 3 years ago
parent
commit
bd3744a67f
  1. 2
      cron-scripts/10-test.sh
  2. 4
      guix-template.scm

2
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

4
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)

Loading…
Cancel
Save