index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | makechrootpkg | 5 |
diff --git a/makechrootpkg b/makechrootpkg index e3e2baf..726f828 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -67,8 +67,9 @@ while getopts 'hcudr:I:l:' arg; do esac done -#Get rid of trailing / in chrootdir -[ "$chrootdir" != "/" ] && chrootdir=$(echo $chrootdir | sed 's#/$##') +# Canonicalize chrootdir, getting rid of trailing / +chrootdir=$(readlink -e "$chrootdir") + copydir="$chrootdir/$COPY" # Pass all arguments after -- right to makepkg |