Skip to content

Commit

Permalink
refactor: improve file deletion in command_stop.sh
Browse files Browse the repository at this point in the history
The code change refactors the file deletion process in the command_stop.sh script. Instead of using an empty redirect, it now directly removes the specified lock file. This improves clarity and ensures proper cleanup when stopping a command.
  • Loading branch information
dgibbs64 committed Jul 30, 2023
1 parent 0c716de commit b7d9e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/modules/command_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ rm -f "${lockdir:?}/${selfname}-started.lock"

# If user ran the stop command monitor will become disabled.
if [ -z "${exitbypass}" ]; then
rm -f > "${lockdir:?}/${selfname}-monitoring.lock"
rm -f "${lockdir:?}/${selfname}-monitoring.lock"
fi


Expand Down

0 comments on commit b7d9e1b

Please sign in to comment.