Set LOCAL depending on whether host-specific config was found

This commit is contained in:
southerntofu 2020-04-19 08:50:38 -04:00
parent 6131357494
commit a3870ffaf4
1 changed files with 8 additions and 0 deletions

View File

@ -18,8 +18,16 @@ run() {
# So scripts can know we're still running (for autoupdater)
touch $BASEDIR/.LOCK
# Overriden by -f/--force to force rebuild when no update is available
FORCE=0
# Check if we have host-specific config then LOCAL=0
LOCAL=1
for folder in $BASEDIR/*/; do
# Hidden folders (repos) are ignored by the pattern, so we can assume if a folder is not config/ then there are host-based configs here.
[[ "$(basename $folder)" != "config" ]] && LOCAL=0 && break
done
# Find targeted projects from args
PROJECTS=()
for arg in "$@"; do