Skip to content

Commit 6a05648

Browse files
committed
Remove square brackets from grep conditions
1 parent 64a48d4 commit 6a05648

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github-action-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ EOL
8686
git config --get remote.origin.url
8787
curl -o pull-request.txt https://api.github.com/repos/$ciOrg/$ciRepo/pulls >/dev/null 2>&1 # Check for pull requests
8888
curl -o secure-env.txt https://api.github.com/orgs/$ciOrg/$ciRepo/secrets >/dev/null 2>&1 # Check for secure env var
89-
if [ ! grep -q "documentation_url" secure-env.txt ]; then
89+
if ! grep -q "documentation_url" secure-env.txt; then
9090
echo "No deploy -- secure environment variables not available"
91-
elif [ grep -q "url" pull-request.txt ]; then
91+
elif grep -q "url" pull-request.txt; then
9292
echo "No deploy -- pull request detected"
9393
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
9494
echo "No deploy -- repository fork: ${repo_fork} != $ciOrg/$ciRepo"

0 commit comments

Comments
 (0)