#3 Debug: Remove checking for count of arguments
This commit is contained in:
parent
601a9706f6
commit
75b065de25
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user