Skip to content

Commit

Permalink
Check the apps used in get-shapefiles.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Sep 21, 2016
1 parent be8c629 commit 7041157
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions get-shapefiles.sh
Expand Up @@ -3,6 +3,21 @@ set -e -u

UNZIP_OPTS=-qqun

# check essential applications
exists()
{
command -v "$1" >/dev/null 2>&1
}

for application in curl tar unzip; do
if exists $application; then
echo $application 'detected...'
else
echo 'ERROR:' $application 'not detected, you need to install it first!'
exit 1
fi
done

# create and populate data dir
mkdir -p data/
mkdir -p data/world_boundaries
Expand Down

0 comments on commit 7041157

Please sign in to comment.