Skip to content

Commit

Permalink
Fix shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Håkon Løvdal committed Sep 15, 2022
1 parent 0330283 commit 7be82c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions env.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Example of using environment variables in a build script named `run-lint.sh`:
```shell
#!/bin/sh

if [ ${GIT_TEST_VERBOSITY:-0} -ge 1 ]
if [ "${GIT_TEST_VERBOSITY:-0}" -ge 1 ]
then
if [ -f tslint.json ]
then
Expand All @@ -37,9 +37,9 @@ then
fi
fi

PARENT=`git log --pretty=%P -n 1 HEAD`
PARENT=$(git log --pretty=%P -n 1 HEAD)
# If current commit is not a merge commit ...
if [ `echo $PARENT | wc -w` -eq 1 ]
if [ "$(echo "$PARENT" | wc -w)" -eq 1 ]
then
if [ "$GIT_TEST_PREVIOUS_CHECKED_OUT_COMMIT" = "$PARENT" ]
then
Expand Down

0 comments on commit 7be82c7

Please sign in to comment.