diff --git a/scripts/install-for-current-provider.sh b/scripts/install-for-current-provider.sh index 4cb85d9..334f1b9 100644 --- a/scripts/install-for-current-provider.sh +++ b/scripts/install-for-current-provider.sh @@ -29,4 +29,8 @@ if command -v node.exe >/dev/null 2>&1; then done ARGS=("${NORMALIZED_ARGS[@]}") fi -"$NODE_BIN" "$SCRIPT_DIR/install-for-current-provider.mjs" "${ARGS[@]}" +if [[ ${#ARGS[@]} -eq 0 ]]; then + "$NODE_BIN" "$SCRIPT_DIR/install-for-current-provider.mjs" +else + "$NODE_BIN" "$SCRIPT_DIR/install-for-current-provider.mjs" "${ARGS[@]}" +fi diff --git a/scripts/launch-ui.sh b/scripts/launch-ui.sh index e4eb335..15697b9 100644 --- a/scripts/launch-ui.sh +++ b/scripts/launch-ui.sh @@ -29,4 +29,8 @@ if command -v node.exe >/dev/null 2>&1; then done ARGS=("${NORMALIZED_ARGS[@]}") fi -"$NODE_BIN" "$SCRIPT_DIR/launch-ui.mjs" "${ARGS[@]}" +if [[ ${#ARGS[@]} -eq 0 ]]; then + "$NODE_BIN" "$SCRIPT_DIR/launch-ui.mjs" +else + "$NODE_BIN" "$SCRIPT_DIR/launch-ui.mjs" "${ARGS[@]}" +fi diff --git a/scripts/restore-codex-config.sh b/scripts/restore-codex-config.sh index c41a6d2..45507ee 100644 --- a/scripts/restore-codex-config.sh +++ b/scripts/restore-codex-config.sh @@ -29,4 +29,8 @@ if command -v node.exe >/dev/null 2>&1; then done ARGS=("${NORMALIZED_ARGS[@]}") fi -"$NODE_BIN" "$SCRIPT_DIR/restore-codex-config.mjs" "${ARGS[@]}" +if [[ ${#ARGS[@]} -eq 0 ]]; then + "$NODE_BIN" "$SCRIPT_DIR/restore-codex-config.mjs" +else + "$NODE_BIN" "$SCRIPT_DIR/restore-codex-config.mjs" "${ARGS[@]}" +fi diff --git a/scripts/start-gateway.sh b/scripts/start-gateway.sh index f543192..2e9e76e 100644 --- a/scripts/start-gateway.sh +++ b/scripts/start-gateway.sh @@ -29,4 +29,8 @@ if command -v node.exe >/dev/null 2>&1; then done ARGS=("${NORMALIZED_ARGS[@]}") fi -"$NODE_BIN" "$SCRIPT_DIR/start-gateway.mjs" "${ARGS[@]}" +if [[ ${#ARGS[@]} -eq 0 ]]; then + "$NODE_BIN" "$SCRIPT_DIR/start-gateway.mjs" +else + "$NODE_BIN" "$SCRIPT_DIR/start-gateway.mjs" "${ARGS[@]}" +fi diff --git a/scripts/stop-gateway.sh b/scripts/stop-gateway.sh index 674ac53..e96cd82 100644 --- a/scripts/stop-gateway.sh +++ b/scripts/stop-gateway.sh @@ -29,4 +29,8 @@ if command -v node.exe >/dev/null 2>&1; then done ARGS=("${NORMALIZED_ARGS[@]}") fi -"$NODE_BIN" "$SCRIPT_DIR/stop-gateway.mjs" "${ARGS[@]}" +if [[ ${#ARGS[@]} -eq 0 ]]; then + "$NODE_BIN" "$SCRIPT_DIR/stop-gateway.mjs" +else + "$NODE_BIN" "$SCRIPT_DIR/stop-gateway.mjs" "${ARGS[@]}" +fi