index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Toolybird <toolybird@tuta.io> | 2023-05-24 16:31:57 +1000 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-26 01:06:14 +0200 |
commit | 71cb9e97bb584bcb7142abde715237fb8d0fa69e (patch) | |
tree | fe4cad81e4ad96f356b5ae8c50a57562dd73e9b3 /src/mkarchroot.in | |
parent | 1b808b8e322effe8ca31a9c6d5be29e8a44e16e6 (diff) |
-rw-r--r-- | src/mkarchroot.in | 5 |
diff --git a/src/mkarchroot.in b/src/mkarchroot.in index 610de16..fc60b4e 100644 --- a/src/mkarchroot.in +++ b/src/mkarchroot.in @@ -32,6 +32,9 @@ usage() { exit 1 } +# save all args for check_root +orig_args=("$@") + while getopts 'hUC:M:c:f:s' arg; do case "$arg" in U) umode=U ;; @@ -52,7 +55,7 @@ shift $((OPTIND - 1)) (( $# < 2 )) && die 'You must specify a directory and one or more packages.' -check_root "" "${BASH_SOURCE[0]}" "$@" +check_root "" "${BASH_SOURCE[0]}" "${orig_args[@]}" working_dir="$(readlink -f "$1")" shift 1 |