Kaynağa Gözat

Maybe check executable first

UltimateByte 9 yıl önce
ebeveyn
işleme
625ba3e558
1 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 8 8
      lgsm/functions/check.sh

+ 8 - 8
lgsm/functions/check.sh

@@ -18,6 +18,14 @@ if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}"
 	check_system_dir.sh
 fi
 
+local allowed_commands_array=( command_start.sh )
+for allowed_command in "${allowed_commands_array[@]}"
+do
+	if [ "${allowed_command}" == "${function_selfname}" ]; then
+		check_executable.sh
+	fi
+done
+
 local allowed_commands_array=( command_debug.sh command_start.sh command_install.sh )
 for allowed_command in "${allowed_commands_array[@]}"
 do
@@ -83,11 +91,3 @@ do
 		check_system_requirements.sh
 	fi
 done
-
-local allowed_commands_array=( command_start.sh )
-for allowed_command in "${allowed_commands_array[@]}"
-do
-	if [ "${allowed_command}" == "${function_selfname}" ]; then
-		check_executable.sh
-	fi
-done