From 86abef0608c72d9919f85cc3c9195df8f27da542 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 7 Dec 2018 22:22:36 -0500 Subject: override in wrapper to run without building --- fsmgr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsmgr') diff --git a/fsmgr b/fsmgr index f2c6ff1..9ee4011 100755 --- a/fsmgr +++ b/fsmgr @@ -2,7 +2,7 @@ die() { printf 'Error: %s\n' "$*" >&2; exit 1; } root=$(stack path --local-install-root) || die "subcommand failed: 'stack path'" bin=$root/bin/fsmgr -stack build +[ "$SKIP_BUILD" ] || stack build case "$(id -u)" in 0) exec "$bin" "$@" ;; *) exec sudo -- "$bin" "$@" ;; -- cgit v1.2.3