APPS=$@ if [[ $1 == "*" && $# -eq 1 ]]; then APPS=$(ls -d */) fi for app in "$APPS" do echo "[server_config] > Installing: $app" source "./$app/_install.sh" \ && echo "[server_config] > Install done" \ || echo "[server_config] > Install failed" done