summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2005-03-03 16:22:56 +0100
committerJason Chu <jason@archlinux.org>2005-03-03 16:22:56 +0100
commit66b4cfe770a412193cf2064c8a06fa96e5435d08 (patch)
tree8c2665d1433337c392d957f2541fed304a369fef
parentf1fe91af29af5215b29faa3a18031a37a48e0b25 (diff)
downloaddevtools-66b4cfe770a412193cf2064c8a06fa96e5435d08.tar.gz
devtools-66b4cfe770a412193cf2064c8a06fa96e5435d08.tar.xz
fixed the typo in my logic
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@205 630f3fb4-fbd1-0310-a574-b293cca3120f
-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