diff --git a/scripts/commit_hash.sh b/scripts/commit_hash.sh index cd20bcb14..ae8206881 100755 --- a/scripts/commit_hash.sh +++ b/scripts/commit_hash.sh @@ -4,7 +4,7 @@ commit=$(git describe --tags) dirty=$(git ls-files -m) if [[ -n ${dirty} ]]; then - commit="$commit+dirty.$(echo ${dirty} | git hash-object --stdin | head -c8)" + commit="$commit+dirty.$(echo ${dirty} | git hash-object --stdin | dd bs=8 count=1 status=none)" fi echo "$commit" diff --git a/tests/dump/test.sh b/tests/dump/test.sh index c9ef25486..5bebcbfa0 100755 --- a/tests/dump/test.sh +++ b/tests/dump/test.sh @@ -48,7 +48,7 @@ echo -e "${title//?/-}\n${title}\n${title//?/-}\n" $burrow_bin dump remote -b dump.bin $burrow_bin dump remote dump.json -height=$(head -1 dump.json | jq .Height) +height=$(head -n 1 dump.json | jq .Height) kill $burrow_pid