aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-07-02 19:48:08 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-07-04 19:35:25 +0300
commit1ac454a3844b9b8389de0f660fa9455c0efa7140 (patch)
tree25912907998366914c0e0328eb53e214e35af13c /share
parent6c21a801f3df4942d09d5a33d3dab04807f7bb37 (diff)
downloadbitcoin-1ac454a3844b9b8389de0f660fa9455c0efa7140.tar.xz
Enable ShellCheck rules
Enabled ShellCheck rules: SC1087 SC2001 SC2004 SC2005 SC2006 SC2016 SC2028 SC2048 SC2066 (note that IFS already contains only a line feed) SC2116 SC2166 SC2181 SC2206 SC2207 SC2230 SC2236
Diffstat (limited to 'share')
-rwxr-xr-xshare/genbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh
index 38c9ba176c..cd6214d5fa 100755
--- a/share/genbuild.sh
+++ b/share/genbuild.sh
@@ -24,9 +24,9 @@ git_check_in_repo() {
DESC=""
SUFFIX=""
-if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
+if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
# clean 'dirty' status of touched files that haven't been modified
- git diff >/dev/null 2>/dev/null
+ git diff >/dev/null 2>/dev/null
# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)