aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMao Zhongyi <maozhongyi@cmss.chinamobile.com>2018-10-15 17:17:34 +0800
committerThomas Huth <thuth@redhat.com>2018-10-16 18:34:19 +0200
commit934821ebae41e59cb2a6c5c7ec99927255117491 (patch)
tree88f94f30412b311ac20f62f1f9f5d85ef24cf801 /scripts
parent53d593d25bec52bcb91b53a93d47857cb5961da3 (diff)
downloadqemu-934821ebae41e59cb2a6c5c7ec99927255117491.zip
qemu-934821ebae41e59cb2a6c5c7ec99927255117491.tar.gz
qemu-934821ebae41e59cb2a6c5c7ec99927255117491.tar.bz2
archive-source.sh: Modern shell scripting (use $() instead of ``)
Various shell files contain a mix between obsolete `` and modern $(); It would be nice to convert to using $() everywhere. Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/archive-source.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh
index 4e63774..62bd225 100755
--- a/scripts/archive-source.sh
+++ b/scripts/archive-source.sh
@@ -18,7 +18,7 @@ if test $# -lt 1; then
error "Usage: $0 <output tarball>"
fi
-tar_file=`realpath "$1"`
+tar_file=$(realpath "$1")
list_file="${tar_file}.list"
vroot_dir="${tar_file}.vroot"
@@ -34,7 +34,7 @@ if git diff-index --quiet HEAD -- &>/dev/null
then
HEAD=HEAD
else
- HEAD=`git stash create`
+ HEAD=$(git stash create)
fi
git clone --shared . "$vroot_dir"
test $? -ne 0 && error "failed to clone into '$vroot_dir'"