mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 02:23:39 -05:00
e6cf8d3845
* Move tests to the test directory * Fix linting errors * Add states back * Add xml back
17 lines
266 B
Bash
17 lines
266 B
Bash
#!/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
|