superlint/.automation/test/shell_shfmt/shell-shfmt_good_1.sh
2020-11-20 09:12:31 -06:00

17 lines
281 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