diff --git a/scripts/deploy-snapshot.sh b/scripts/deploy-snapshot.sh index 37556f9e..c0c45303 100755 --- a/scripts/deploy-snapshot.sh +++ b/scripts/deploy-snapshot.sh @@ -15,7 +15,7 @@ function overwrite_remote_tag() { } function has_release() { - gh release view "${NIGHTLY_TAG}" &>/dev/null + gh release view "${NIGHTLY_TAG}" &> /dev/null echo "$?" } diff --git a/scripts/encrypt-secret.sh b/scripts/encrypt-secret.sh index dae931ed..ebdd0a50 100755 --- a/scripts/encrypt-secret.sh +++ b/scripts/encrypt-secret.sh @@ -6,13 +6,13 @@ INPUT_FILE="${1:-}" OUTPUT_FILE="${2:-}" AGE_KEY="${3:-}" -if ! command -v age 1>/dev/null; then +if ! command -v age 1> /dev/null; then echo "age not installed" 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}" + age --encrypt -r "$(echo "${AGE_KEY}" | age-keygen -y)" -o "${OUTPUT_FILE}" < "${INPUT_FILE}" else echo "Usage: ./encrypt-secret.sh " fi diff --git a/scripts/signing-setup.sh b/scripts/signing-setup.sh index 100c0f25..7445d394 100755 --- a/scripts/signing-setup.sh +++ b/scripts/signing-setup.sh @@ -7,10 +7,10 @@ KEY_FILE="$(mktemp)" trap "rm -rf ${KEY_FILE} 2>/dev/null" INT TERM EXIT -echo "${ENCRYPT_KEY:?}" >"${KEY_FILE}" +echo "${ENCRYPT_KEY:?}" > "${KEY_FILE}" function decrypt() { - if ! command -v age 1>/dev/null; then + if ! command -v age 1> /dev/null; then echo "age not installed" exit 1 fi