This is an automated email from the ASF dual-hosted git repository. yjhjstz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit e0a82bf94abe16b3d43eb3ba6b46f8374d910191 Author: Sasasu <[email protected]> AuthorDate: Thu Mar 2 09:29:16 2023 +0800 gpinitsystem: fix bash syntax when remote locale is incorrect (#15053) --- gpMgmt/bin/gpinitsystem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpMgmt/bin/gpinitsystem b/gpMgmt/bin/gpinitsystem index f8d3bd37f8..84a3dbb9c4 100755 --- a/gpMgmt/bin/gpinitsystem +++ b/gpMgmt/bin/gpinitsystem @@ -715,7 +715,7 @@ CHK_LOCALE_KNOWN () { else # Hostname has been passed so check remote locale value if [ $( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$(NORMALIZE_CODESET_IN_LOCALE $LOCALE_SETTING)'" ) -eq 0 ] \ - && [$( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$LOCALE_SETTING'" ) -eq 0] ;then + && [ $( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$LOCALE_SETTING'" ) -eq 0 ] ;then LOG_MSG "[INFO]:-Host $1 available locale values" `$TRUSTED_SHELL $1 "$LOCALE -a"` >> $LOG_FILE LOG_MSG "[FATAL]:-Unable to locate locale value $LOCALE_SETTING on $1" 1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
