Skip to content

Instantly share code, notes, and snippets.

@kylejeske
Created April 24, 2019 14:01
Show Gist options
  • Save kylejeske/865dc8da8d841b6f027e5b71c4a49a14 to your computer and use it in GitHub Desktop.
Save kylejeske/865dc8da8d841b6f027e5b71c4a49a14 to your computer and use it in GitHub Desktop.
a bit shellish
#!/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