Commit 74df2a90 authored by Florian Pritz's avatar Florian Pritz Committed by Pierre Schmitz
Browse files

makechrootpkg: support absolute paths for chroot copy

parent 8384ad84
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -74,8 +74,12 @@ done
# Canonicalize chrootdir, getting rid of trailing /
chrootdir=$(readlink -e "$chrootdir")

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}"