chore(scripts): run shfmt

This commit is contained in:
Harsh Shandilya 2023-09-26 17:12:02 +05:30
parent 3cf6b22d95
commit de921bf786
No known key found for this signature in database
4 changed files with 8 additions and 6 deletions

View file

@ -11,8 +11,8 @@ if ! command -v age 1>/dev/null; then
exit 1
fi
if [[ -n "$AGE_KEY" && -n "$INPUT_FILE" && -n "$OUTPUT_FILE" ]]; then
age --encrypt -r "$(echo "${AGE_KEY}" | age-keygen -y)" -o "${OUTPUT_FILE}" < "${INPUT_FILE}"
if [[ -n $AGE_KEY && -n $INPUT_FILE && -n $OUTPUT_FILE ]]; then
age --encrypt -r "$(echo "${AGE_KEY}" | age-keygen -y)" -o "${OUTPUT_FILE}" <"${INPUT_FILE}"
else
echo "Usage: ./encrypt-secret.sh <input file> <output file> <encryption key>"
fi