diff options
-rwxr-xr-x | makechrootpkg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg index 1a6d8e5..a60c9fe 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -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}" |