Skip to content

Commit eaf594c

Browse files
committed
Fix shellcheck linting errors
1 parent 005458e commit eaf594c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

transcrypt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,16 +771,16 @@ upgrade_transcrypt() {
771771
cipher=$(git config --get --local transcrypt.cipher)
772772
password=$(git config --get --local transcrypt.password)
773773
else
774-
cipher=$(git config --get --local transcrypt.${context_name}.cipher)
775-
password=$(git config --get --local transcrypt.${context_name}.password)
774+
cipher=$(git config --get --local transcrypt."${context_name}".cipher)
775+
password=$(git config --get --local transcrypt."${context_name}".password)
776776
fi
777777
ORIG_CONFIGS+=("${context_name}|${cipher}|${password}")
778778
done
779779

780780
uninstall_transcrypt
781781

782782
# Reconfigure cipher and password for each context
783-
for orig_config_line in ${ORIG_CONFIGS[@]}; do
783+
for orig_config_line in "${ORIG_CONFIGS[@]}"; do
784784
context=$(echo "$orig_config_line" | awk 'BEGIN { FS = "|" }; { print $1 }')
785785
cipher=$(echo "$orig_config_line" | awk 'BEGIN { FS = "|" }; { print $2 }')
786786
password=$(echo "$orig_config_line" | awk 'BEGIN { FS = "|" }; { print $3 }')

0 commit comments

Comments
 (0)