Commit 35077b43 authored by Jakub Jirutka's avatar Jakub Jirutka

replace deprecated `...` syntax with $(...) in shell scripts

parent 81c88882
...@@ -107,7 +107,7 @@ install_pubkey= ...@@ -107,7 +107,7 @@ install_pubkey=
non_interactive= non_interactive=
quiet= 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 if [ $? -ne 0 ]; then
usage usage
exit 2 exit 2
......
...@@ -63,7 +63,7 @@ privkey="$PACKAGER_PRIVKEY" ...@@ -63,7 +63,7 @@ privkey="$PACKAGER_PRIVKEY"
pubkey= pubkey=
quiet= 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 if [ $? -ne 0 ]; then
usage usage
exit 2 exit 2
......
...@@ -108,8 +108,8 @@ fixes= ...@@ -108,8 +108,8 @@ fixes=
[ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR" [ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR"
git rev-parse 2>/dev/null || die "not in a git tree" 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 \ args=$(getopt -o f:s:Rkqh --long fixes:,security:,recursive,keep,quiet,help \
-n "$program" -- "$@"` -n "$program" -- "$@")
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
usage usage
exit 2 exit 2
......
...@@ -95,8 +95,8 @@ force= ...@@ -95,8 +95,8 @@ force=
setto= setto=
only_clean_git= only_clean_git=
args=`getopt -o zags:tfqh --long zero,add,clean-git,set:,test,force,quiet,help \ args=$(getopt -o zags:tfqh --long zero,add,clean-git,set:,test,force,quiet,help \
-n "$program" -- "$@"` -n "$program" -- "$@")
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
usage usage
exit 2 exit 2
......
...@@ -178,7 +178,7 @@ stop-initfs) ...@@ -178,7 +178,7 @@ stop-initfs)
cd "$LOGDIR" cd "$LOGDIR"
mkdir "$NEWROOT$LOGDIR" mkdir "$NEWROOT$LOGDIR"
cp /sbin/bootchartd $NEWROOT/sbin cp /sbin/bootchartd $NEWROOT/sbin
PID=`cat bootchart.pid` PID=$(cat bootchart.pid)
kill -USR2 $PID kill -USR2 $PID
wait $PID wait $PID
mv * "$NEWROOT$LOGDIR" mv * "$NEWROOT$LOGDIR"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment