summaryrefslogtreecommitdiffstats
path: root/checkpkg
diff options
context:
space:
mode:
Diffstat (limited to 'checkpkg')
-rw-r--r--checkpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkg b/checkpkg
index 8f91469..fea294d 100644
--- a/checkpkg
+++ b/checkpkg
@@ -33,8 +33,8 @@ if [ "$oldpkg" = "$pkgname-$pkgver-$pkgrel.pkg.tar.gz" ]; then
fi
if [ ! -f $oldpkg ]; then
- if echo $oldpkg | grep "^file:///" > /dev/null 2>&1; then
- cp `echo $oldpkg | sed 's#^file://##'` .
+ if echo $pkgurl | grep "^file:///" > /dev/null 2>&1; then
+ cp `echo $pkgurl | sed 's#^file://##'` .
else
wget $pkgurl
fi