@@ -93,12 +93,10 @@ RABBITMQ_CONFIG_FILE_NOEX=$(get_noex ${RABBITMQ_CONFIG_FILE})
93
93
if [ " ${RABBITMQ_CONFIG_FILE_NOEX} " = " ${RABBITMQ_CONFIG_FILE} " ]; then
94
94
if [ -f " ${RABBITMQ_CONFIG_FILE_NOEX} .config" ]; then
95
95
if [ -f " ${RABBITMQ_CONFIG_FILE_NOEX} .conf" ]; then
96
- # Both files exist. Print a warning
97
- _rmq_env_pwarn " Both old (.config) and new (.conf) format config files exist.\n" \
98
- " " \
99
- " Using the old format config file: ${RABBITMQ_CONFIG_FILE_NOEX} .config\n" \
100
- " " \
101
- " Please update your config files to the new format and remove the old file"
96
+ # Both files exist. Print a warning.
97
+ _rmq_env_pwarn ' Both old (.config) and new (.conf) format config files exist.' \
98
+ " Using the old format config file: ${RABBITMQ_CONFIG_FILE_NOEX} .config" \
99
+ ' Please update your config files to the new format and remove the old file.'
102
100
fi
103
101
RABBITMQ_CONFIG_FILE=" ${RABBITMQ_CONFIG_FILE_NOEX} .config"
104
102
elif [ -f " ${RABBITMQ_CONFIG_FILE_NOEX} .conf" ]; then
@@ -127,25 +125,22 @@ elif [ "${RABBITMQ_CONFIG_FILE_NOEX}.conf" = "${RABBITMQ_CONFIG_FILE}" ]; then
127
125
elif [ " x" != " x${RABBITMQ_CONFIG_FILE} " \
128
126
-a " ${RABBITMQ_CONFIG_FILE_NOEX} " != " ${RABBITMQ_CONFIG_FILE} " ]; then
129
127
# Config file has an extension, but it's neither .conf or .config
130
- _rmq_env_perr " Wrong extension for RABBITMQ_CONFIG_FILE: ${RABBITMQ_CONFIG_FILE} \n" \
131
- " " \
132
- " The extension should be either .conf or .config"
128
+ _rmq_env_perr " Wrong extension for RABBITMQ_CONFIG_FILE: ${RABBITMQ_CONFIG_FILE} " \
129
+ ' The extension should be either .conf or .config'
133
130
exit 64 # EX_USAGE
134
131
fi
135
132
136
133
RABBITMQ_CONFIG_ARG_FILE_NOEX=$( get_noex ${RABBITMQ_CONFIG_ARG_FILE} )
137
134
138
135
if [ " ${RABBITMQ_CONFIG_ARG_FILE_NOEX} .config" != " ${RABBITMQ_CONFIG_ARG_FILE} " ]; then
139
136
if [ " ${RABBITMQ_CONFIG_ARG_FILE} " = " ${RABBITMQ_ADVANCED_CONFIG_FILE} " ]; then
140
- _rmq_env_perr " Wrong extension for RABBITMQ_ADVANCED_CONFIG_FILE: ${RABBITMQ_ADVANCED_CONFIG_FILE} \n" \
141
- " " \
142
- " The extension should be .config"
137
+ _rmq_env_perr " Wrong extension for RABBITMQ_ADVANCED_CONFIG_FILE: ${RABBITMQ_ADVANCED_CONFIG_FILE} " \
138
+ ' The extension should be .config'
143
139
exit 64 # EX_USAGE
144
140
else
145
141
# We should never got here, but still there should be some explanation
146
- _rmq_env_perr " Wrong extension for ${RABBITMQ_CONFIG_ARG_FILE} \n" \
147
- " " \
148
- " The extension should be .config"
142
+ _rmq_env_perr " Wrong extension for ${RABBITMQ_CONFIG_ARG_FILE} "
143
+ ' The extension should be .config'
149
144
exit 64 # EX_USAGE
150
145
fi
151
146
fi
0 commit comments