diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-23 18:16:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-23 18:16:53 +0200 |
commit | 685d094023e2edbd130a7c86d46e7fd79a62e8af (patch) | |
tree | a22de1cb3f2e1238d97e8d7292b6ad80ca29ef0f /src/platform | |
parent | 59272fc6af05dfc603c9230dbded251344e2380c (diff) | |
download | pass-685d094023e2edbd130a7c86d46e7fd79a62e8af.tar.gz pass-685d094023e2edbd130a7c86d46e7fd79a62e8af.tar.bz2 pass-685d094023e2edbd130a7c86d46e7fd79a62e8af.zip |
Use aliases instead of variables for command portability.
Diffstat (limited to '')
-rw-r--r-- | src/platform/darwin.sh | 4 | ||||
-rw-r--r-- | src/platform/freebsd.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh index 1b76c33..161b687 100644 --- a/src/platform/darwin.sh +++ b/src/platform/darwin.sh @@ -31,5 +31,5 @@ tmpdir() { mount -t hfs -o noatime -o nobrowse "$ramdisk_dev" "$SECURE_TMPDIR" || exit 1 } -GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || echo /usr/local)/bin/getopt" -SHRED="srm -f -z" +alias getopt="command $(brew --prefix gnu-getopt 2>/dev/null || echo /usr/local)/bin/getopt" +alias shred="command srm -f -z" diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh index d93c774..da062fb 100644 --- a/src/platform/freebsd.sh +++ b/src/platform/freebsd.sh @@ -1,5 +1,5 @@ # Copyright (C) 2012 Jonathan Chu <milki@rescomp.berkeley.edu>. All Rights Reserved. # This file is licensed under the GPLv2+. Please see COPYING for more information. -GETOPT="/usr/local/bin/getopt" -SHRED="rm -P -f" +alias getopt="command /usr/local/bin/getopt" +alias shred="command rm -P -f" |