diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-21 06:23:30 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-21 06:23:30 +0100 |
commit | 89f641be1a2b7eac883b15b98100ca70c6c87e7c (patch) | |
tree | fca567200e2566a299610c8fd5e1e047039a3f24 /infra/libkookie/build | |
parent | 75d90de7bdc53f77c96c351d84891606b16e9c3e (diff) |
code dumptmp
Diffstat (limited to 'infra/libkookie/build')
-rwxr-xr-x | infra/libkookie/build | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/infra/libkookie/build b/infra/libkookie/build index db80a0232159..fb12b28beb78 100755 --- a/infra/libkookie/build +++ b/infra/libkookie/build @@ -24,22 +24,22 @@ function build { ## Build and output build path for debugging function debug { - build + build "$@" echo "Build path: $OUT" exit 0 } ## Build and switch to the new configuration (requires root) function switch { - build + build "$@" nix-env -p /nix/var/nix/profiles/system --set "$OUT" "$OUT"/bin/switch-to-configuration switch } case "$1" in - -s* | --switch*) shift; switch ;; - -d* | --debug*) shift; debug ;; - *) build ;; + -s* | --switch*) shift; switch "$@" ;; + -d* | --debug*) shift; debug "$@" ;; + *) build "$@" ;; esac rm -rf "$OUT"* |