From c33c733984b5c5e3a162ec20f840812e0e9e27a7 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 4 Mar 2024 13:54:29 +0100 Subject: [PATCH] =?UTF-8?q?updateall=20:=20r=C3=A9glage=20du=20script=20de?= =?UTF-8?q?=20mise=20=C3=A0=20jour=20de=20Arch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/updateall/scripts/10-arch | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config/updateall/scripts/10-arch b/config/updateall/scripts/10-arch index d3f738d..60f4f8a 100755 --- a/config/updateall/scripts/10-arch +++ b/config/updateall/scripts/10-arch @@ -1,6 +1,10 @@ #!/bin/sh -ex -aura -Scc -aura -Fy -aura -Syu -aura -Au --devel -aura -Qdtq | aura -Rns - +if [ "$(whoami)" = root ]; then + aura -Scc + aura -Fy + aura -Syu + aura -Qdtq | aura -Rns - +else + sudo -- "$0" "$@" + aura -Au --devel +fi