Commit 8c9e973a authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2018-02-27: FG; Do not leave temporary files around.

parent ec120dbc
......@@ -182,9 +182,9 @@ if [[ $RET_VAL = 0 ]]; then
firstIter=1
for (( idx=0; idx<${#raidNameArray[@]}; idx++)); do
raidList="${raidCtrlArray2[$idx]}"
STATUSFILE=`mktemp`
if [[ $SHOWDEV = 1 ]]; then
STATUSFILE=`mktemp`
GET_CMD="$PATHBIN $raidList $CHECKSYNTAX -c 'set session performanceMonitorInterval=3 performanceMonitorIterations=1 ; save storageArray performanceStats file=\"$STATUSFILE\";' > /dev/null"
if [[ $DEBUG = 1 ]]; then
echo -n -e "\n########################################\n"
......
......@@ -366,7 +366,7 @@ fi
# Housekeeping
rm -f $STATUSFILE
# rm -f $SENDERFILE
rm -f $SENDERFILE
if [[ -n $tmpCONFIGFILE ]]; then
rm -f $CONFIGFILE
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment