Created
April 24, 2019 14:01
-
-
Save kylejeske/865dc8da8d841b6f027e5b71c4a49a14 to your computer and use it in GitHub Desktop.
a bit shellish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
{ | |
set -e; | |
DKCMD=$(which docker); | |
## gcc, json, check | |
${FORMAT:-"gcc"}; | |
${VERSION:-"v0.4.7"}; | |
${FILE:-"not-magic-logic-based-scripts.sh"}; | |
output=$("$DKCMD" run -v "$PWD:/mnt" "koalaman/shellcheck:${VERISON}" -f gcc "$FILE"); | |
echo "$output" | |
} || echo "Whoops. Error: $!;"; exit 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment