makechrootpkg: support absolute paths for chroot copy
Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
8384ad849d
commit
74df2a90d8
|
@ -74,8 +74,12 @@ done
|
|||
# Canonicalize chrootdir, getting rid of trailing /
|
||||
chrootdir=$(readlink -e "$chrootdir")
|
||||
|
||||
[[ -z $copy ]] && copy=$default_copy
|
||||
copydir="$chrootdir/$copy"
|
||||
if [[ ${copy:0:1} = "/" ]]; then
|
||||
copydir=$copy
|
||||
else
|
||||
[[ -z $copy ]] && copy=$default_copy
|
||||
copydir="$chrootdir/$copy"
|
||||
fi
|
||||
|
||||
# Pass all arguments after -- right to makepkg
|
||||
MAKEPKG_ARGS="$MAKEPKG_ARGS ${*:$OPTIND}"
|
||||
|
|
Loading…
Reference in New Issue