Skip to content
Snippets Groups Projects
Commit 3ef56680 authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Fix shellcheck complaints

parent 2dffefd6
No related branches found
No related tags found
1 merge request!4Replace davidhrbac/docker-mdcheck with it4innovations/docker-mdcheck
Pipeline #6182 passed
...@@ -16,6 +16,5 @@ pylint: ...@@ -16,6 +16,5 @@ pylint:
shellcheck: shellcheck:
stage: test stage: test
image: it4innovations/docker-shellcheck:latest image: it4innovations/docker-shellcheck:latest
allow_failure: true
script: script:
- shellcheck *.sh - shellcheck *.sh
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# vim: ai ts=2 sw=2 et sts=2 ft=sh # vim: ai ts=2 sw=2 et sts=2 ft=sh
PWD="/home/easybuild/git/it4i-modules" PWD="/home/easybuild/git/it4i-modules"
cd $PWD cd $PWD || exit 1
STATE=$(git fetch 2>&1 | grep master) STATE=$(git fetch 2>&1 | grep master)
if [ ! -z "$STATE" ]; then if [ ! -z "$STATE" ]; then
...@@ -11,7 +11,7 @@ if [ ! -z "$STATE" ]; then ...@@ -11,7 +11,7 @@ if [ ! -z "$STATE" ]; then
exit 0 exit 0
fi fi
CLUSTER=$(echo "$CLUSTERNAME") CLUSTER="$CLUSTERNAME"
if [ -z "$CLUSTER" ]; then if [ -z "$CLUSTER" ]; then
echo "CLUSTERNAME not defined" echo "CLUSTERNAME not defined"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment