diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-21 07:16:00 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-22 20:41:07 +0100 |
commit | 0efc511d5d4d230d33b1841fb41320617294b682 (patch) | |
tree | c3f56550a635dff0ee28fb6e876919cb725d19d6 | |
parent | 3f3e44beca1a6431c54372294c87ea226d2ea9e7 (diff) |
libkookie: build: correctily pass additional arguments to nix 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 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"* |