From 4fadf8072a9dced5b441d0ac337679c7dde79ede Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 26 Sep 2023 21:04:27 +0200 Subject: [PATCH] Update 91-universal_graphic_drivers.sh --- .templates/91-universal_graphic_drivers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.templates/91-universal_graphic_drivers.sh b/.templates/91-universal_graphic_drivers.sh index 5edf61136..52ef366c6 100755 --- a/.templates/91-universal_graphic_drivers.sh +++ b/.templates/91-universal_graphic_drivers.sh @@ -5,6 +5,7 @@ if bashio::config.has_value "graphic_driver"; then # Origin : https://github.com/wumingjieno1/photoprism-test/blob/main/scripts/dist/install-gpu.sh # abort if not executed as root if [[ $(id -u) != "0" ]]; then + # shellcheck disable=SC2128 bashio::log.fatal "Error: Run $(basename "${BASH_SOURCE}") as root" 1>&2 exit 1 fi