summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-20 16:11:44 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-23 00:09:07 +0200
commit35077b43e8ccacc50b3d2e379f57f22722eef054 (patch)
treef44e65e88381cfe1ad44f521a1de27cbcb477ed0
parent81c8888228fd017a9fd5d3ba6a8d1b647019eba5 (diff)
downloadabuild-35077b43e8ccacc50b3d2e379f57f22722eef054.tar.bz2
abuild-35077b43e8ccacc50b3d2e379f57f22722eef054.tar.xz
replace deprecated `...` syntax with $(...) in shell scripts
-rw-r--r--abuild-keygen.in2
-rw-r--r--abuild-sign.in2
-rw-r--r--abump.in4
-rw-r--r--apkgrel.in4
-rwxr-xr-xbootchartd2
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"