From b7d9e1b5218e985cb4230a1a8181a13a971dc84d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 30 Jul 2023 23:48:01 +0100 Subject: [PATCH] refactor: improve file deletion in command_stop.sh 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. --- lgsm/modules/command_stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/command_stop.sh b/lgsm/modules/command_stop.sh index c2c12da2a..f1e421579 100644 --- a/lgsm/modules/command_stop.sh +++ b/lgsm/modules/command_stop.sh @@ -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