Skip to content

Commit

Permalink
Add check for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed May 1, 2024
1 parent 8f9a337 commit ca84e4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run-clang-tidy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/sh -x
#!/bin/sh

if [ $# -ne 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "$0 <build-path>"
echo "Set env var 'base_sha' to upstream/next hash and 'head_sha' and your current HEAD hash."
exit 1
fi

if [ -z $base_sha ] || [ -z $head_sha ]; then
echo "Set env var 'base_sha' to upstream/next hash and 'head_sha' and your current HEAD hash."
exit 1
fi

Expand Down

0 comments on commit ca84e4e

Please sign in to comment.