mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Add offline flag to darwin-rebuild.sh
This commit is contained in:
parent
230a197063
commit
bb17a88bc0
1 changed files with 4 additions and 1 deletions
|
@ -12,7 +12,7 @@ showSyntax() {
|
|||
echo " [--keep-going] [-k] [--keep-failed] [-K] [--fallback] [--show-trace]" >&2
|
||||
echo " [-I path] [--option name value] [--arg name value] [--argstr name value]" >&2
|
||||
echo " [--flake flake] [--update-input input flake] [--impure] [--recreate-lock-file]" >&2
|
||||
echo " [--no-update-lock-file] [--refresh] ..." >&2
|
||||
echo " [--no-update-lock-file] [--refresh] [--offline] ..." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -116,6 +116,9 @@ while [ $# -gt 0 ]; do
|
|||
fi
|
||||
shift 1
|
||||
;;
|
||||
--offline)
|
||||
extraBuildFlags+=("$i")
|
||||
;;
|
||||
*)
|
||||
echo "$0: unknown option '$i'"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue