Set LOCAL depending on whether host-specific config was found
This commit is contained in:
parent
6131357494
commit
a3870ffaf4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue