Skip to content

Commit

Permalink
replace deprecated ... syntax with $(...) in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Aug 22, 2016
1 parent 81c8888 commit 35077b4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion abuild-keygen.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion abuild-sign.in
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions abump.in
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions apkgrel.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bootchartd
Expand Up @@ -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"
Expand Down

0 comments on commit 35077b4

Please sign in to comment.