Fix shebang breaking script on nixos

This commit is contained in:
Joey Hafner 2024-12-31 10:44:43 -08:00
parent 38a0430854
commit da179843ee
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Takes file path as first positional argument
# Takes file path as first positional argument
# Takes encrypted file contents from /dev/stdin
# Outputs to stdout
@ -30,4 +30,4 @@ if [[ -z ${FILE_TYPE+x} ]]; then
sops --decrypt /dev/stdin
else
sops --decrypt --input-type $FILE_TYPE --output-type $FILE_TYPE /dev/stdin
fi
fi

View File

@ -1,4 +1,4 @@
#!/bin/bash
# Takes file path as $1
# Takes file contents from stdin
# Outputs to stdout
@ -25,4 +25,4 @@ if [[ -z ${FILE_TYPE+x} ]]; then
sops --encrypt --config $REPO_ROOT/.sops.yaml /dev/stdin
else
sops --encrypt --config $REPO_ROOT/.sops.yaml --input-type $FILE_TYPE --output-type json /dev/stdin
fi
fi