From 75b065de253224ac9ceff19e359af4eccb2992e7 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 15 Aug 2024 15:17:31 -0700 Subject: [PATCH] #3 Debug: Remove checking for count of arguments --- homelab/.sops/decrypt-in-place.sh | 8 ++++---- homelab/.sops/encrypt-in-place.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/homelab/.sops/decrypt-in-place.sh b/homelab/.sops/decrypt-in-place.sh index 4c0190bb..f793bed1 100755 --- a/homelab/.sops/decrypt-in-place.sh +++ b/homelab/.sops/decrypt-in-place.sh @@ -2,10 +2,10 @@ # Takes one file path as input # Outputs to a new file with `.enc` stripped from the end -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi +# if [ "$#" -ne 1 ]; then +# echo "Usage: $0 " +# exit 1 +# fi SOPS_AGE_KEY_FILE=$HOME/.age/key if [[ -f $SOPS_AGE_KEY_FILE ]]; then diff --git a/homelab/.sops/encrypt-in-place.sh b/homelab/.sops/encrypt-in-place.sh index 618ef98e..fdd8802a 100755 --- a/homelab/.sops/encrypt-in-place.sh +++ b/homelab/.sops/encrypt-in-place.sh @@ -2,10 +2,10 @@ # Takes one file path as input # Outputs to a new file named `$1.enc` -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi +# if [ "$#" -ne 1 ]; then +# echo "Usage: $0 " +# exit 1 +# fi # Set age directory and default recipients AGE_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)