summaryrefslogtreecommitdiff
path: root/fsmgr
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-12-07 22:22:36 -0500
committerAndrew Cady <d@jerkface.net>2018-12-07 22:22:36 -0500
commit86abef0608c72d9919f85cc3c9195df8f27da542 (patch)
treedfbe2aad6eb6d4a73b9b16e210eab4f6c3ffc986 /fsmgr
parent809ca6e1cedd00ee313a35ad0c9ae65805544e5d (diff)
override in wrapper to run without building
Diffstat (limited to 'fsmgr')
-rwxr-xr-xfsmgr2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsmgr b/fsmgr
index f2c6ff1..9ee4011 100755
--- a/fsmgr
+++ b/fsmgr
@@ -2,7 +2,7 @@
2die() { printf 'Error: %s\n' "$*" >&2; exit 1; } 2die() { printf 'Error: %s\n' "$*" >&2; exit 1; }
3root=$(stack path --local-install-root) || die "subcommand failed: 'stack path'" 3root=$(stack path --local-install-root) || die "subcommand failed: 'stack path'"
4bin=$root/bin/fsmgr 4bin=$root/bin/fsmgr
5stack build 5[ "$SKIP_BUILD" ] || stack build
6case "$(id -u)" in 6case "$(id -u)" in
7 0) exec "$bin" "$@" ;; 7 0) exec "$bin" "$@" ;;
8 *) exec sudo -- "$bin" "$@" ;; 8 *) exec sudo -- "$bin" "$@" ;;