From 89f641be1a2b7eac883b15b98100ca70c6c87e7c Mon Sep 17 00:00:00 2001 From: Mx Kookie Date: Mon, 21 Dec 2020 06:23:30 +0100 Subject: code dump --- infra/libkookie/build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'infra/libkookie/build') 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"* -- cgit v1.2.3