From da179843ee555e65d92494020a4cb790d3e4c44b Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 31 Dec 2024 10:44:43 -0800 Subject: [PATCH] Fix shebang breaking script on nixos --- .sops/decrypt-filter.sh | 6 +++--- .sops/encrypt-filter.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.sops/decrypt-filter.sh b/.sops/decrypt-filter.sh index f12cf230..af404fe0 100755 --- a/.sops/decrypt-filter.sh +++ b/.sops/decrypt-filter.sh @@ -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 \ No newline at end of file +fi diff --git a/.sops/encrypt-filter.sh b/.sops/encrypt-filter.sh index 72126165..ca85f666 100755 --- a/.sops/encrypt-filter.sh +++ b/.sops/encrypt-filter.sh @@ -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 \ No newline at end of file +fi