./all update-maps: check for unzip

This commit is contained in:
Rudolf Polzer 2012-07-28 12:28:44 +02:00
parent d8da0fb628
commit 0d99890aa2

View File

@ -361,6 +361,10 @@ case "$1" in
runmakeindex runmakeindex
;; ;;
download) download)
if ! which unzip >/dev/null 2>&1; then
echo "Cannot find unzip, bailing out"
exit 1
fi
if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; then if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; then
echo "data/xonotic-maps.pk3dir does not exist, not downloading" echo "data/xonotic-maps.pk3dir does not exist, not downloading"
exit 0 exit 0