1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

darwin: add check as command for darwin-rebuild

This commit is contained in:
Daiderd Jordan 2017-07-24 22:58:18 +02:00
parent 40eb1292aa
commit 79b180249a
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -5,7 +5,7 @@ export PATH=@path@:$PATH
showSyntax() {
echo "darwin-rebuild [--help] {build | switch} [{--profile-name | -p} name] [{--switch-generation | -G} generation] [--rollback]" >&2
echo "darwin-rebuild [--help] {build | switch | check} [{--profile-name | -p} name] [{--switch-generation | -G} generation] [--rollback]" >&1
echo " [--verbose...] [-v...] [-Q] [{--max-jobs | -j} number] [--cores number]" >&2
echo " [--dry-run] [--keep-going] [-k] [--keep-failed] [-K] [--fallback] [--show-trace] [-I path]" >&2
echo " [--option name value] [--arg name value] [--argstr name value]" >&2
@ -29,6 +29,10 @@ while [ "$#" -gt 0 ]; do
switch|build)
action="$i"
;;
check)
action="$i"
export checkActivation=1
;;
--show-trace|--no-build-hook|--dry-run|--keep-going|-k|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
extraBuildFlags+=("$i")
;;
@ -52,10 +56,6 @@ while [ "$#" -gt 0 ]; do
k="$1"; shift 1
extraBuildFlags+=("$i" "$j" "$k")
;;
--check)
action="check"
export checkActivation=1
;;
--rollback)
action="rollback"
extraProfileFlags=("$i")