diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:11:04 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:11:21 +0100 |
commit | 07c02f672a5708e4dcd9ed9aa3935840916f4c6e (patch) | |
tree | 9ff73b028918c1b7940fcbf31fcf87176c8bd741 /libalpine.sh.in | |
parent | cb474e20d6ff923a8f338f26b93234411065ffc0 (diff) | |
download | alpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.zip |
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'libalpine.sh.in')
-rw-r--r-- | libalpine.sh.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libalpine.sh.in b/libalpine.sh.in index 760eaec..f3857e2 100644 --- a/libalpine.sh.in +++ b/libalpine.sh.in @@ -2,7 +2,7 @@ PREFIX=@PREFIX@ -PROGRAM=`basename $0` +PROGRAM=$(basename $0) : ${ROOT:=/} [ "${ROOT}" = "${ROOT%/}" ] && ROOT="${ROOT}/" @@ -12,7 +12,7 @@ echon () { if [ X"$ECHON" = X ]; then # Determine how to "echo" without newline: "echo -n" # or "echo ...\c" - if [ X`echo -n` = X-n ]; then + if [ X$(echo -n) = X-n ]; then ECHON=echo NNL="\c" # " @@ -46,8 +46,8 @@ die() { } init_tmpdir() { - local omask=`umask` - local __tmpd="/tmp/$PROGRAM-${$}-`date +%s`-$RANDOM" + local omask=$(umask) + local __tmpd="/tmp/$PROGRAM-${$}-$(date +%s)-$RANDOM" umask 077 || die "umask" mkdir -p "$__tmpd" || exit 1 trap "rm -fr \"$__tmpd\"; exit" 0 |