mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Correct script identification https://github.com/alexbelgium/hassio-addons/issues/1004
This commit is contained in:
@@ -5,7 +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
|
||||
bashio::log.fatal "Error: Run ${0##*/} as root" 1>&2
|
||||
bashio::log.fatal "Error: Run $(basename "${BASH_SOURCE}") as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user