Browse Source

new: [compose-core] add code improvements !minor

cache-relation
Valentin Lab 2 months ago
parent
commit
239e221786
  1. 6
      bin/compose-core

6
bin/compose-core

@ -2398,8 +2398,8 @@ export -f get_compose_relations
get_all_services() {
local cache_file="$state_tmpdir/$FUNCNAME.cache.$(H "$GLOBAL_ALL_RELATIONS_HASH")" \
s rn ts rc td services
local cache_file="$state_tmpdir/$FUNCNAME.cache.$GLOBAL_ALL_RELATIONS_HASH" \
s rn ts rc td services service
if [ -e "$cache_file" ]; then
#debug "$FUNCNAME: SESSION cache hit $1"
cat "$cache_file"
@ -2418,7 +2418,7 @@ get_all_services() {
services["$service"]=1
echo "$service"
done
done < <(cat "$GLOBAL_ALL_RELATIONS") > "$cache_file"
done < "$GLOBAL_ALL_RELATIONS" > "$cache_file"
cat "$cache_file"
}

Loading…
Cancel
Save