summaryrefslogtreecommitdiff
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:16:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:16:53 +0200
commit685d094023e2edbd130a7c86d46e7fd79a62e8af (patch)
treea22de1cb3f2e1238d97e8d7292b6ad80ca29ef0f /tests/setup.sh
parent59272fc6af05dfc603c9230dbded251344e2380c (diff)
downloadpass-685d094023e2edbd130a7c86d46e7fd79a62e8af.tar.gz
pass-685d094023e2edbd130a7c86d46e7fd79a62e8af.tar.bz2
pass-685d094023e2edbd130a7c86d46e7fd79a62e8af.zip
Use aliases instead of variables for command portability.
Diffstat (limited to '')
-rwxr-xr-xtests/setup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 90896a7..d23cda9 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -29,12 +29,13 @@ if [[ ! -e $PASS ]]; then
echo "Could not find password-store.sh"
exit 1
fi
+alias pass="command \"$PASS\""
# Note: the assumption is the test key is unencrypted.
export GNUPGHOME="$TEST_HOME/gnupg/"
chmod 700 "$GNUPGHOME"
-GPG="gpg"
-which gpg2 &>/dev/null && GPG="gpg2"
+alias gpg="command gpg"
+which gpg2 &>/dev/null && alias gpg="command gpg2"
# We don't want to use any running agent.
# We want an agent to appear to pass to be running.
@@ -46,4 +47,3 @@ KEY2="D774A374" # pass test key 2
KEY3="EB7D54A8" # pass test key 3
KEY4="E4691410" # pass test key 4
KEY5="39E5020C" # pass test key 5
-