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