+start_all() +{
- for dir in $CONTAINER_PATH/*/
- do
start_depends $dir &
- done
- wait
+}
tmpdir=$(mktemp -d)
-for dir in $CONTAINER_PATH/*/ -do
- [ "$action" != "start-only" ] && build_depends $dir
- start_depends $dir
-done +[ "$action" != "start-only" ] && build_all +start_all
use '==' is more readabbility than '!=' [ "$action" == "start-only" ] || build_all
Thanks, Luan Shengde
rm -fr $tmpdir
2.23.0