summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakechrootpkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 425fbb9..120e70a 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -151,8 +151,9 @@ chown -R nobody "$uniondir/build"
source PKGBUILD
cp PKGBUILD "$uniondir/build/"
for f in ${source[@]}; do
- if [ -f "$f" ]; then
- cp "$f" "$uniondir/build/"
+ basef=$(basename $f)
+ if [ -f "$basef" ]; then
+ cp "$basef" "$uniondir/build/"
fi
done
if [ "$install" != "" -a -f "$install" ]; then