summaryrefslogtreecommitdiff
path: root/lbu.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 /lbu.in
parentcb474e20d6ff923a8f338f26b93234411065ffc0 (diff)
downloadalpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.zip
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbu.in b/lbu.in
index 81eef2e..1cd767e 100644
--- a/lbu.in
+++ b/lbu.in
@@ -723,8 +723,8 @@ cmd_migrate_include_exclude() {
#-----------------------------------------------------------
# Main
-cmd=`echo "$PROGRAM" | cut -s -d_ -f2`
-PROGRAM=`echo "$PROGRAM" | cut -d_ -f1`
+cmd=$(echo "$PROGRAM" | cut -s -d_ -f2)
+PROGRAM=$(echo "$PROGRAM" | cut -d_ -f1)
if [ -z "$cmd" ] ; then
cmd="$1"
[ -z "$cmd" ] && usage
@@ -773,7 +773,7 @@ while getopts "adehlM:np:qrv" opt ; do
;;
esac
done
-shift `expr $OPTIND - 1`
+shift $(expr $OPTIND - 1)
trap exit_clean SIGINT SIGTERM
cmd_$SUBCMD "$@"