summaryrefslogtreecommitdiff
path: root/libalpine.sh.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:11:04 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:11:21 +0100
commit07c02f672a5708e4dcd9ed9aa3935840916f4c6e (patch)
tree9ff73b028918c1b7940fcbf31fcf87176c8bd741 /libalpine.sh.in
parentcb474e20d6ff923a8f338f26b93234411065ffc0 (diff)
downloadalpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.zip
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'libalpine.sh.in')
-rw-r--r--libalpine.sh.in8
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