1
0
Fork 0
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:
Rubikoid 2024-04-06 11:52:47 +03:00
parent 230a197063
commit bb17a88bc0
No known key found for this signature in database
GPG key ID: 0B65FBE6C49C4BE5

View file

@ -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