Skip to content

Commit

Permalink
Fixed CSV error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location committed Sep 22, 2020
1 parent f19797e commit 16695b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ echo -n " > Decompress downloaded package "

unzip -q -o database.zip

if [ "$CODE" == "DB1CSV" ]; then
if [ "$CODE" == "DB1" ]; then
CSV="$(find . -name 'IPCountry.csv')"

elif [ "$CODE" == "DB2CSV" ]; then
elif [ "$CODE" == "DB2" ]; then
CSV="$(find . -name 'IPISP.csv')"

elif [ ! -z "$(echo $CODE | grep 'LITE')" ]; then
CSV="$(find . -name 'IP*.CSV')"

elif [ ! -z "$(echo $CODE | grep 'CSVIPV6')" ]; then
elif [ ! -z "$(echo $CODE | grep 'IPV6')" ]; then
CSV="$(find . -name 'IPV6-COUNTRY*.CSV')"

else
Expand Down
6 changes: 3 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ echo -n " > Decompress downloaded package "

unzip -q -o database.zip

if [ "$CODE" == "DB1CSV" ]; then
if [ "$CODE" == "DB1" ]; then
CSV="$(find . -name 'IPCountry.csv')"

elif [ "$CODE" == "DB2CSV" ]; then
elif [ "$CODE" == "DB2" ]; then
CSV="$(find . -name 'IPISP.csv')"

elif [ ! -z "$(echo $CODE | grep 'LITE')" ]; then
CSV="$(find . -name 'IP*.CSV')"

elif [ ! -z "$(echo $CODE | grep 'CSVIPV6')" ]; then
elif [ ! -z "$(echo $CODE | grep 'IPV6')" ]; then
CSV="$(find . -name 'IPV6-COUNTRY*.CSV')"

else
Expand Down

0 comments on commit 16695b8

Please sign in to comment.