#3 Debug: Remove checking for count of arguments

This commit is contained in:
Joey Hafner 2024-08-15 15:17:31 -07:00
parent 601a9706f6
commit 75b065de25
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

View File

@ -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 <file_path>"
exit 1
fi
# if [ "$#" -ne 1 ]; then
# echo "Usage: $0 <file_path>"
# exit 1
# fi
SOPS_AGE_KEY_FILE=$HOME/.age/key
if [[ -f $SOPS_AGE_KEY_FILE ]]; then

View File

@ -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 <file_path>"
exit 1
fi
# if [ "$#" -ne 1 ]; then
# echo "Usage: $0 <file_path>"
# exit 1
# fi
# Set age directory and default recipients
AGE_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)