Daniel Gibbs 8 лет назад
Родитель
Сommit
b6acd56063
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lgsm/functions/command_stop.sh

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -226,7 +226,7 @@ fn_stop_ark(){
 			pid=${pid//[!0-9]/}
 			let pid+=0 # turns an empty string into a valid number, '0',
 			# and a valid numeric pid remains unchanged.
-			if [ "${pid}" -gt 1 ]&&[ "${pid}" -le $(cat "/proc/sys/kernel/pid_max") ]; then
+			if [ "${pid}" -gt 1 ]&&[ "${pid}" -le "$(cat "/proc/sys/kernel/pid_max")" ]; then
 			fn_print_dots "Process still bound. Awaiting graceful exit: ${pidcheck}"
 				sleep 1
 			else