index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-05 13:49:50 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-05 13:49:50 -0500 |
commit | 34ac2931234b898d587bffe76ba061082b6c673c (patch) | |
tree | 2b613cca360a54b6285836aa0413a50158ddc147 /mkarchroot.in | |
parent | 33f227ec628f30b70ee5b1412fd47564325b4b4c (diff) | |
parent | 98166e3454139918304b3e0a314e41628dd0c61c (diff) |
-rw-r--r-- | mkarchroot.in | 4 |
diff --git a/mkarchroot.in b/mkarchroot.in index 09ba64f..3da2144 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -24,6 +24,8 @@ usage() { exit 1 } +orig_argv=("$@") + while getopts 'hC:M:c:' arg; do case "$arg" in C) pac_conf="$OPTARG" ;; @@ -37,7 +39,7 @@ shift $(($OPTIND - 1)) (( $# < 2 )) && die 'You must specify a directory and one or more packages.' -check_root "$0" "$@" +check_root "$0" "${orig_argv[@]}" working_dir="$(readlink -f $1)" shift 1 |