From 198579d14fbb09abaf0aacc86d956f12871a79b4 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Fri, 15 Sep 2023 10:04:54 +0200 Subject: [PATCH] =?UTF-8?q?Remaniement=20:=20syst=C3=A8me=20de=20priorit?= =?UTF-8?q?=C3=A9=20dans=20updateall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/updateall | 4 ++-- share/updateall/scripts.d/{apt => 10-apt} | 0 share/updateall/scripts.d/{yay => 10-yay} | 0 share/updateall/scripts.d/{docker => 50-docker} | 0 share/updateall/scripts.d/{waydroid => 50-waydroid} | 0 share/updateall/scripts.d/{yabridge => 50-yabridge} | 0 share/updateall/scripts.d/{git => 70-git} | 0 share/updateall/scripts.d/{nvim => 80-nvim} | 0 8 files changed, 2 insertions(+), 2 deletions(-) rename share/updateall/scripts.d/{apt => 10-apt} (100%) rename share/updateall/scripts.d/{yay => 10-yay} (100%) rename share/updateall/scripts.d/{docker => 50-docker} (100%) rename share/updateall/scripts.d/{waydroid => 50-waydroid} (100%) rename share/updateall/scripts.d/{yabridge => 50-yabridge} (100%) rename share/updateall/scripts.d/{git => 70-git} (100%) rename share/updateall/scripts.d/{nvim => 80-nvim} (100%) diff --git a/bin/updateall b/bin/updateall index 2848342..f6c7a59 100755 --- a/bin/updateall +++ b/bin/updateall @@ -29,7 +29,7 @@ separator() { # Procédure principale main() { for i in "${scripts_d}/"*; do - separator "$(basename "$i")" + separator "$(basename "$i" | cut -d '-' -f 2)" "$i" done } @@ -42,7 +42,7 @@ case "$script" in main "$@" ;; *) - "${scripts_d}/${script}" "$@" + "${scripts_d}/"??"-${script}" "$@" ;; esac diff --git a/share/updateall/scripts.d/apt b/share/updateall/scripts.d/10-apt similarity index 100% rename from share/updateall/scripts.d/apt rename to share/updateall/scripts.d/10-apt diff --git a/share/updateall/scripts.d/yay b/share/updateall/scripts.d/10-yay similarity index 100% rename from share/updateall/scripts.d/yay rename to share/updateall/scripts.d/10-yay diff --git a/share/updateall/scripts.d/docker b/share/updateall/scripts.d/50-docker similarity index 100% rename from share/updateall/scripts.d/docker rename to share/updateall/scripts.d/50-docker diff --git a/share/updateall/scripts.d/waydroid b/share/updateall/scripts.d/50-waydroid similarity index 100% rename from share/updateall/scripts.d/waydroid rename to share/updateall/scripts.d/50-waydroid diff --git a/share/updateall/scripts.d/yabridge b/share/updateall/scripts.d/50-yabridge similarity index 100% rename from share/updateall/scripts.d/yabridge rename to share/updateall/scripts.d/50-yabridge diff --git a/share/updateall/scripts.d/git b/share/updateall/scripts.d/70-git similarity index 100% rename from share/updateall/scripts.d/git rename to share/updateall/scripts.d/70-git diff --git a/share/updateall/scripts.d/nvim b/share/updateall/scripts.d/80-nvim similarity index 100% rename from share/updateall/scripts.d/nvim rename to share/updateall/scripts.d/80-nvim