From 229cc9c1c9c9a042bcede2dd96a0785afb619917 Mon Sep 17 00:00:00 2001 From: Yash Garg Date: Wed, 2 Oct 2019 19:25:55 +0530 Subject: [PATCH] Improve build.sh to latest standards --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index e4364c45d1..b3be98262e 100644 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ echo "Updating git repository" git fetch origin git reset --hard origin/master -if test `find "./app/db/GeoLite2/GeoLite2-Country.mmdb" -mmin +259200` +if test $(find "./app/db/GeoLite2/GeoLite2-Country.mmdb" -mmin +259200) then printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://dev.maxmind.com/geoip/geoip2/geolite2/ for more info${NC}\n" fi @@ -23,8 +23,8 @@ composer update --ignore-platform-reqs --optimize-autoloader --no-dev --no-plugi echo 'Starting build...' -docker build -t appwrite/appwrite:$1 . +docker build -t appwrite/appwrite:"$1" . echo 'Pushing build to registry...' -docker push appwrite/appwrite:$1 \ No newline at end of file +docker push appwrite/appwrite:"$1"