diff options
Diffstat (limited to 'infra')
-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 e79ae239967a..e4ca73b04bd2 100755 --- a/infra/libkookie/build +++ b/infra/libkookie/build @@ -22,22 +22,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"* |