You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lgsm/modules/command_toggle_cronjobs.sh
+7-8
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,21 @@ fn_toggle_cronjob() {
28
28
29
29
local completejob="${jobschedule}${lgsmcommand} > ${outputlog} 2> ${errorlog}${lgsmcomment}"
30
30
31
-
local currentcrontab=$(crontab -l 2>/dev/null)
31
+
local currentcrontab
32
+
currentcrontab=$(crontab -l 2>/dev/null)
32
33
33
34
# If a cronjob for this LinuxGSM command already exists
34
35
# ! ($| ) is used to match the end of the line or a space after the command to avoid matching similar commands like ./gameserver update & ./gameserver update-lgsm
0 commit comments