From 35077b43e8ccacc50b3d2e379f57f22722eef054 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 20 Aug 2016 16:11:44 +0200 Subject: [PATCH] replace deprecated `...` syntax with $(...) in shell scripts --- abuild-keygen.in | 2 +- abuild-sign.in | 2 +- abump.in | 4 ++-- apkgrel.in | 4 ++-- bootchartd | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/abuild-keygen.in b/abuild-keygen.in index c9dec9d..de37299 100644 --- a/abuild-keygen.in +++ b/abuild-keygen.in @@ -107,7 +107,7 @@ install_pubkey= non_interactive= quiet= -args=`getopt -o ainqh --long append,install,quiet,help -n "$program" -- "$@"` +args=$(getopt -o ainqh --long append,install,quiet,help -n "$program" -- "$@") if [ $? -ne 0 ]; then usage exit 2 diff --git a/abuild-sign.in b/abuild-sign.in index f333c35..b2d1bdb 100644 --- a/abuild-sign.in +++ b/abuild-sign.in @@ -63,7 +63,7 @@ privkey="$PACKAGER_PRIVKEY" pubkey= quiet= -args=`getopt -o ek:p:qh --long installed,private:,public:,quiet,help -n "$program" -- "$@"` +args=$(getopt -o ek:p:qh --long installed,private:,public:,quiet,help -n "$program" -- "$@") if [ $? -ne 0 ]; then usage exit 2 diff --git a/abump.in b/abump.in index b06a933..efeb481 100644 --- a/abump.in +++ b/abump.in @@ -108,8 +108,8 @@ fixes= [ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR" git rev-parse 2>/dev/null || die "not in a git tree" -args=`getopt -o f:s:Rkqh --long fixes:,security:,recursive,keep,quiet,help \ - -n "$program" -- "$@"` +args=$(getopt -o f:s:Rkqh --long fixes:,security:,recursive,keep,quiet,help \ + -n "$program" -- "$@") if [ $? -ne 0 ]; then usage exit 2 diff --git a/apkgrel.in b/apkgrel.in index 6c16be3..1250136 100644 --- a/apkgrel.in +++ b/apkgrel.in @@ -95,8 +95,8 @@ force= setto= only_clean_git= -args=`getopt -o zags:tfqh --long zero,add,clean-git,set:,test,force,quiet,help \ - -n "$program" -- "$@"` +args=$(getopt -o zags:tfqh --long zero,add,clean-git,set:,test,force,quiet,help \ + -n "$program" -- "$@") if [ $? -ne 0 ]; then usage exit 2 diff --git a/bootchartd b/bootchartd index 43fdfe9..e265582 100755 --- a/bootchartd +++ b/bootchartd @@ -178,7 +178,7 @@ stop-initfs) cd "$LOGDIR" mkdir "$NEWROOT$LOGDIR" cp /sbin/bootchartd $NEWROOT/sbin - PID=`cat bootchart.pid` + PID=$(cat bootchart.pid) kill -USR2 $PID wait $PID mv * "$NEWROOT$LOGDIR"