fix?
This commit is contained in:
parent
00c368e282
commit
327924bc38
|
@ -12,7 +12,6 @@ die() {
|
||||||
[[ $EUID -ne 0 ]] && die "root is required to install on a system"
|
[[ $EUID -ne 0 ]] && die "root is required to install on a system"
|
||||||
|
|
||||||
# parse args
|
# parse args
|
||||||
POSITIONAL_ARGS=()
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-c|--nixos-config)
|
-c|--nixos-config)
|
||||||
|
@ -25,10 +24,6 @@ while [[ $# -gt 0 ]]; do
|
||||||
shift # past argument
|
shift # past argument
|
||||||
shift # past value
|
shift # past value
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
POSITIONAL_ARGS+=("$1") # save positional arg
|
|
||||||
shift # past argument
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue