summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-05-06 17:57:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-06 17:57:56 +0200
commitf14d968e9c507a86b598681554d2fd318c30c680 (patch)
tree6cfc13bad0ed3be90227fbbab3a1c7aa5ef20d69 /src/password-store.sh
parent276fb973ab8517f3ec888b4ee2114d982131293c (diff)
downloadpass-f14d968e9c507a86b598681554d2fd318c30c680.tar.gz
pass-f14d968e9c507a86b598681554d2fd318c30c680.tar.bz2
pass-f14d968e9c507a86b598681554d2fd318c30c680.zip
Force sane sort order.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 8e1a124..bafe1ac 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -108,9 +108,9 @@ reencrypt_path() {
IFS=";" eval 'GPG_RECIPIENTS+=( $group )' # http://unix.stackexchange.com/a/92190
unset GPG_RECIPIENTS[$index]
done
- gpg_keys="$($GPG --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort -u)"
+ gpg_keys="$($GPG --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | LC_ALL=C sort -u)"
fi
- current_keys="$($GPG -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | sort -u)"
+ current_keys="$($GPG -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | LC_ALL=C sort -u)"
if [[ $gpg_keys != "$current_keys" ]]; then
echo "$passfile_display: reencrypting to ${gpg_keys//$'\n'/ }"