Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed verify_zip usage error

  • Loading branch information...
commit 951feefa5f6bb9c074bc8895aefb2ff6d6310d53 1 parent 01d283b
Avishai Ish-Shalom authored avishai-ish-shalom committed
View
2  external/ip2location/download.pl 100755 → 100644
@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
###############################################################################
# IP2Location Download Client
###############################################################################
@@ -26,6 +25,7 @@
# Copyright (C) 2005-2010 IP2Location.com. All rights reserved.
#
###############################################################################
+#!/usr/bin/perl -w
use Getopt::Long;
use strict;
$|++;
View
6 external/ip2location/update.sh
@@ -51,10 +51,10 @@ depends_on perl
mkdir -p $TMPDIR
rm "$TMPDIR/*"
cd $(dirname $0)
-./download.pl -package $PKG -login $LOGIN -password $PASSWORD -output $TMPDIR/$PKG-$MONTH.zip || \
+./download.pl -package $PKG -login $LOGIN -password $PASSWORD -output "$TMPDIR/$PKG-$MONTH.zip" || \
die "Failed to download, quitting"
-verify_zip $TMPDIR $TMPDIR/$PKG-$MONTH.zip
-unzip -u -o -d $TMPDIR $TMPDIR/$PKG-$MONTH.zip 'IP*.CSV' || die "Failed to download, quitting"
+verify_zip "$TMPDIR/$PKG-$MONTH.zip"
+unzip -u -o -d $TMPDIR "$TMPDIR/$PKG-$MONTH.zip" 'IP*.CSV' || die "Failed to download, quitting"
PKG_FILE="$TMPDIR/IP*.CSV"
cd ../../src/
Please sign in to comment.
Something went wrong with that request. Please try again.