diff options
author | Yeliz Taneroğlu <yeliztaneroglu@gmail.com> | 2017-05-19 17:46:21 +0300 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-21 12:56:17 +0200 |
commit | 68d7364dfbed50a802e61bf94493510405367b31 (patch) | |
tree | 90b658a89075439712884a83f947c8e5d08e2491 /solenv/bin | |
parent | df17aa2e26ab28fbd599765726f2c96fffb9b75b (diff) |
tdf#105204 fix shellcheck warning in solenv/bin/bin_library_info.sh
Change-Id: I1c212966f9dc9157fd23ef6c71924d4d96af7e9f
SC2086: Double quote to prevent globbing and word splitting.
Reviewed-on: https://gerrit.libreoffice.org/37831
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'solenv/bin')
-rwxr-xr-x | solenv/bin/bin_library_info.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/solenv/bin/bin_library_info.sh b/solenv/bin/bin_library_info.sh index 94bc262c0bc3..65c40ee23254 100755 --- a/solenv/bin/bin_library_info.sh +++ b/solenv/bin/bin_library_info.sh @@ -26,15 +26,15 @@ exit 0; die() { - [ $V ] && echo "Error:" "$@" + [ "$V" ] && echo "Error:" "$@" exit -1; } get_config_sha() { - pushd ${SRCDIR?} > /dev/null - git hash-object ${BUILDDIR?}/config_host.mk + pushd "${SRCDIR?}" > /dev/null + git hash-object "${BUILDDIR?}"/config_host.mk popd > /dev/null } @@ -42,7 +42,7 @@ get_library_gbuild_sha() { local module="$1" - pushd ${SRCDIR?} > /dev/null + pushd "${SRCDIR?}" > /dev/null if [ -d "${SRCDIR}/external/${module?}" ] ; then git ls-tree -d HEAD "external/${module?}" | cut -f 1 | cut -d " " -f 3 else |