Skip to content

Commit

Permalink
use -n to test for bash script argument
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
  • Loading branch information
ukane-philemon authored and chappjc committed Jun 5, 2024
1 parent e068551 commit 6fe8861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -ex
GV=$(go version | sed "s/^.*go\([0-9.]*\).*/\1/")
echo "Go version: $GV"

if [[ -v TESTTAGS ]]; then
if [[ -n "${TESTTAGS}" ]]; then
TESTTAGS="-tags \"${TESTTAGS}\""
else
TESTTAGS=
Expand Down

0 comments on commit 6fe8861

Please sign in to comment.