From 07c02f672a5708e4dcd9ed9aa3935840916f4c6e Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 2 Nov 2016 22:11:04 +0100 Subject: replace deprecated `...` syntax with $(...) in shell scripts --- lbu.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lbu.in') 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 "$@" -- cgit v1.2.3