From 53e9f133372f4877ea74898f86f4236a970b2864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Guzm=C3=A1n?= Date: Fri, 7 Aug 2020 19:37:54 -0600 Subject: [PATCH] sudo Prompt if not root --- arch/install-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/install-config.sh b/arch/install-config.sh index 0f634d7..0942654 100755 --- a/arch/install-config.sh +++ b/arch/install-config.sh @@ -7,8 +7,8 @@ # if [ "$(id -u)" -ne 0 ]; then - echo 'This script must be run with root privileges' >&2 - exit 1 + #rerun the script with root privileges + exec sudo "$0" "$@" fi # Use Qi to check for exact package name