aboutsummaryrefslogtreecommitdiffstats
path: root/update-conf.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 /update-conf.in
parentcb474e20d6ff923a8f338f26b93234411065ffc0 (diff)
downloadalpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.tar.bz2
alpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.tar.xz
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'update-conf.in')
-rw-r--r--update-conf.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-conf.in b/update-conf.in
index 61ea654..4ee1a01 100644
--- a/update-conf.in
+++ b/update-conf.in
@@ -26,7 +26,7 @@ __EOF__
is_modified() {
[ -f "$LBUCACHE" ] || lbu status -a | awk '{print $2}' > "$LBUCACHE"
- test -n "`( echo \"$1\" ; cat \"$LBUCACHE\" ) | sort | uniq -d`"
+ test -n "$( ( echo \"$1\" ; cat \"$LBUCACHE\" ) | sort | uniq -d)"
}
@@ -34,7 +34,7 @@ is_initd() {
echo "$1" | grep etc/init.d/ > /dev/null
}
-args=`getopt -o ailh --long all,initd,list,help -n "$PROGRAM" -- "$@"`
+args=$(getopt -o ailh --long all,initd,list,help -n "$PROGRAM" -- "$@")
if [ $? -ne 0 ]; then
usage
exit 2