summaryrefslogtreecommitdiffstats
path: root/misc-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'misc-scripts')
-rwxr-xr-xmisc-scripts/make-sourceball4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index f2d8415..11fac06 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -110,7 +110,7 @@ remove_old() {
done
for pkg in "$srcpath/$pkgname-"*; do
- pkg="$(basename $pkg)"
+ [ -f "$pkg" ] || continue
if [ "$(getpkgname $pkg)" == "$pkgname" ]; then
skip=0
pver="$(getpkgver $pkg)"
@@ -121,7 +121,7 @@ remove_old() {
fi
done
if [ $skip -ne 1 ]; then
- rm -f "$srcpath/$pkg"
+ rm -f "$pkg"
fi
fi
done