index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-01-02 12:38:20 +1000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-01-18 11:06:52 +0100 |
commit | a8b64995ee6ee32285cc4f33f127a094b8a63fff (patch) | |
tree | 0f7bf081680695569cac8fdc475c939187a86f11 /makechrootpkg.in | |
parent | 2c9855fe6b6d64b0646bc16fceb476aef33eaa2f (diff) |
-rw-r--r-- | makechrootpkg.in | 7 |
diff --git a/makechrootpkg.in b/makechrootpkg.in index fc8c73e..166b89b 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -20,6 +20,7 @@ install_pkg= add_to_db=false run_namcap=false chrootdir= +passeddir= default_copy=$USER [[ -n $SUDO_USER ]] && default_copy=$SUDO_USER @@ -63,7 +64,7 @@ while getopts 'hcudr:I:l:n' arg; do c) clean_first=true ;; u) update_first=true ;; d) add_to_db=true ;; - r) chrootdir="$OPTARG" ;; + r) passeddir="$OPTARG" ;; I) install_pkg="$OPTARG" ;; l) copy="$OPTARG" ;; n) run_namcap=true ;; @@ -72,7 +73,7 @@ while getopts 'hcudr:I:l:n' arg; do done # Canonicalize chrootdir, getting rid of trailing / -chrootdir=$(readlink -e "$chrootdir") +chrootdir=$(readlink -e "$passeddir") if [[ ${copy:0:1} = / ]]; then copydir=$copy @@ -101,7 +102,7 @@ if [[ ! -f PKGBUILD && -z $install_pkg ]]; then fi if [[ ! -d $chrootdir ]]; then - die "No chroot dir defined, or invalid path '$chrootdir'" + die "No chroot dir defined, or invalid path '$passeddir'" fi if [[ ! -d $chrootdir/root ]]; then |