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 /lbu.in | |
parent | cb474e20d6ff923a8f338f26b93234411065ffc0 (diff) | |
download | alpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.zip |
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'lbu.in')
-rw-r--r-- | lbu.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 "$@" |