From 84a43f8537be8ee57eeb9584f88f11da9499b175 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 May 2022 10:31:38 +0300 Subject: [PATCH] Changing order of @always tasks --- taskman.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskman.inc.php b/taskman.inc.php index 58a1669..abfbc95 100644 --- a/taskman.inc.php +++ b/taskman.inc.php @@ -271,7 +271,7 @@ function taskman_run($argv = array(), $help_func = null, $proc_argv = true) foreach(taskman_gettasks() as $task_obj) { if($task_obj->hasProp('always')) - $always_tasks[] = $task_obj; + array_unshift($always_tasks, $task_obj); if($task_obj->hasProp('default')) { if($default_task)