Created
July 26, 2017 23:55
-
-
Save infinisil/b959a7bf13789c89a8bdcf084f06d40d to your computer and use it in GitHub Desktop.
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
with import <nixpkgs> {}; | |
let | |
script = '' | |
#!/usr/bin/env bash | |
echo hi | |
''; | |
shellCheck = script: | |
runCommand "shellcheck" {} '' | |
${shellcheck}/bin/shellcheck ${writeText "script" script} && touch $out | |
''; | |
in | |
shellCheck script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment