Skip to content

Instantly share code, notes, and snippets.

@anton-matosov
anton-matosov / use-local-sh.sh
Created February 18, 2018 06:51 — forked from dtaskoff/use-local-sh.sh
A script used for modifying the ghc's scripts installed by stack, so that they use a local sh executable
stackargs=$@
shbin="$(which sh)"
if [ -z "$shbin" ] || [[ "$shbin" =~ "not found" ]]; then
echo "Couldn't find sh, exiting."
exit 1
else
echo "Found sh: $shbin"
fi