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>
This commit is contained in:
parent
53d593d25b
commit
934821ebae
@ -18,7 +18,7 @@ if test $# -lt 1; then
|
|||||||
error "Usage: $0 <output tarball>"
|
error "Usage: $0 <output tarball>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tar_file=`realpath "$1"`
|
tar_file=$(realpath "$1")
|
||||||
list_file="${tar_file}.list"
|
list_file="${tar_file}.list"
|
||||||
vroot_dir="${tar_file}.vroot"
|
vroot_dir="${tar_file}.vroot"
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ if git diff-index --quiet HEAD -- &>/dev/null
|
|||||||
then
|
then
|
||||||
HEAD=HEAD
|
HEAD=HEAD
|
||||||
else
|
else
|
||||||
HEAD=`git stash create`
|
HEAD=$(git stash create)
|
||||||
fi
|
fi
|
||||||
git clone --shared . "$vroot_dir"
|
git clone --shared . "$vroot_dir"
|
||||||
test $? -ne 0 && error "failed to clone into '$vroot_dir'"
|
test $? -ne 0 && error "failed to clone into '$vroot_dir'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user