From 89ea270fd724a5de2857b95f8ad92378d6efefa6 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 22 Aug 2018 00:39:11 +0200 Subject: [PATCH] fix --- update-packages | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/update-packages b/update-packages index 0e4c170..d28f673 100755 --- a/update-packages +++ b/update-packages @@ -2,6 +2,13 @@ set -ex +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" 1>&2 + sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 + exit 0 +fi +echo "Als root Angemeldet" + repo=SpectreOS repo1=shell-scripte