Skip to content

Commit adf139e

Browse files
committed
fix: read taito-user-config.sh only if it exists
1 parent a717ae2 commit adf139e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

taito-config.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ case $taito_provider in
337337
taito_plugins="${taito_plugins/kubectl:-local/}"
338338
taito_plugins="${taito_plugins/helm:-local/}"
339339
# ssh plugin as database proxy
340-
. ./taito-user-config.sh # TODO
340+
if [[ -f taito-user-config.sh ]]; then
341+
. ./taito-user-config.sh # TODO
342+
fi
341343
. "${taito_util_path:-}/read-database-config.sh" "${taito_target:-}"
342344
export ssh_db_proxy="\
343345
-L 0.0.0.0:${database_port:-}:${database_host:-}:${database_real_port:-} ${taito_ssh_user:-$taito_host_username}@${database_real_host:-}"

0 commit comments

Comments
 (0)