mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-23 01:00:57 -05:00
fcce194d34
Change-Id: I9a044fefe96e400b8e3320842b53fe97af2a7b40
17 lines
271 B
Bash
Executable file
17 lines
271 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# CMD
|
|
HELLO_WORLD=$(echo "Hello World" | cut -f1 -d' ' 2>&1)
|
|
|
|
# Load the error code
|
|
ERROR_CODE=$?
|
|
|
|
# Check the shell
|
|
if [ ${ERROR_CODE} -ne 0 ]; then
|
|
echo "We did it!"
|
|
exit 0
|
|
else
|
|
echo "We done goofed it..."
|
|
echo "${HELLO_WORLD}"
|
|
exit 1
|
|
fi
|