mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
chore(scripts): run shfmt
This commit is contained in:
parent
3cf6b22d95
commit
de921bf786
4 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue