File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ if [ $REMOTE -eq 0 ]; then
161
161
162
162
# Cache the discovery for this unit PID (and cleanup any old files)
163
163
#
164
- rm /tmp/${0##*/ } .* 2> /dev/null
164
+ rm -f /tmp/${0##*/ } .* 2> /dev/null
165
165
echo UNIT_CTRL=\" ${UNIT_CTRL} \" > /tmp/${0##*/ } .$PID .env
166
166
echo ERROR_LOG=${ERROR_LOG} >> /tmp/${0##*/ } .$PID .env
167
167
fi
@@ -221,11 +221,11 @@ if [ $CURL_STATUS -ne 0 ]; then
221
221
echo " ${0##*/ } : Check that you have permission to access the Unit control socket, or try again with sudo(8)"
222
222
else
223
223
echo " ${0##*/ } : Trying to access $UNIT_CTRL$URI "
224
- cat /tmp/${0##*/ } .$$ && rm /tmp/${0##*/ } .$$
224
+ cat /tmp/${0##*/ } .$$ && rm -f /tmp/${0##*/ } .$$
225
225
fi
226
226
exit 4
227
227
fi
228
- rm /tmp/${0##*/ } .$$ 2> /dev/null
228
+ rm -f /tmp/${0##*/ } .$$ 2> /dev/null
229
229
230
230
if [ $SHOW_LOG -gt 0 ] && [ $NOLOG -eq 0 ] && [ $QUIET -eq 0 ]; then
231
231
echo -n " ${0##*/ } : Waiting for log..."
You can’t perform that action at this time.
0 commit comments