index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Jan Steffens <jan.steffens@gmail.com> | 2011-03-13 17:57:28 +0100 |
---|---|---|
committer | Jan Steffens <jan.steffens@gmail.com> | 2011-03-14 02:31:26 +0100 |
commit | f72297a639cda567107f83c1da4eafa2de604d9f (patch) | |
tree | bf3fe51b6ec4e925c5b83bc571e12c9632575f0b | |
parent | ba7cc139c40d77d4f9c60802313d0b5018ca44bd (diff) |
-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 |