File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ get_noex() {
80
80
else
81
81
local BASENAME=$( basename $1 )
82
82
local DIRNAME=$( dirname $1 )
83
- echo " ${DIRNAME} /${BASENAME% .* } "
83
+ if [ " x." = " x${DIRNAME} " ]; then
84
+ echo " ${BASENAME% .* } "
85
+ else
86
+ echo " ${DIRNAME} /${BASENAME% .* } "
87
+ fi
84
88
fi
85
89
}
86
90
@@ -138,8 +142,8 @@ elif [ "x" != "x${RABBITMQ_CONFIG_FILE}" \
138
142
exit 1
139
143
fi
140
144
145
+ RABBITMQ_CONFIG_ARG_FILE_NOEX=$( get_noex ${RABBITMQ_CONFIG_ARG_FILE} )
141
146
142
- # Set -config if the file exists
143
147
if [ " ${RABBITMQ_CONFIG_ARG_FILE_NOEX} .config" != " ${RABBITMQ_CONFIG_ARG_FILE} " ]; then
144
148
if [ " ${RABBITMQ_CONFIG_ARG_FILE} " = " ${RABBITMQ_ADVANCED_CONFIG_FILE} " ]; then
145
149
echo " ERROR: Wrong extension for RABBITMQ_ADVANCED_CONFIG_FILE: ${RABBITMQ_ADVANCED_CONFIG_FILE} "
@@ -153,8 +157,8 @@ if [ "${RABBITMQ_CONFIG_ARG_FILE_NOEX}.config" != "${RABBITMQ_CONFIG_ARG_FILE}"
153
157
fi
154
158
fi
155
159
160
+ # Set -config if the file exists
156
161
if [ -f " ${RABBITMQ_CONFIG_ARG_FILE} " ]; then
157
- RABBITMQ_CONFIG_ARG_FILE_NOEX=$( get_noex ${RABBITMQ_CONFIG_ARG_FILE} )
158
162
RABBITMQ_CONFIG_ARG=" -config ${RABBITMQ_CONFIG_ARG_FILE_NOEX} "
159
163
fi
160
164
You can’t perform that action at this time.
0 commit comments