Interactive interface for browsing global, full-resolution satellite imagery
Added check for package.json name; will only git pull if matches our options repo.
ZachTRiceb2922af1aa0c
diff --git a/options-check.sh b/options-check.shindex a66c8310e..bdf20b5a3 100644--- a/options-check.sh+++ b/options-check.sh@@ -1,10 +1,15 @@#!/bin/bash+PACKAGE_NAME=$(sed -nE 's/^\s*"name": "(.*?)",$/\1/p' options/package.json)changed=0-cd options && git remote update && git status -uno | grep -q 'Your branch is behind' && changed=1-if [ $changed = 1 ]; then- git pull && cd -- echo "Updated successfully";+if [ $PACKAGE_NAME = 'worldview-options-eosdis' ]; then+ cd options && git remote update && git status -uno | grep -q 'Your branch is behind' && changed=1+ if [ $changed = 1 ]; then+ git pull && cd -+ echo "Updated successfully";+ else+ cd -+ echo "Up-to-date"+ fielse- cd -- echo "Up-to-date"+ echo "Worldview options not found.";fi