Warn if running install-plotter.sh as root (#16206)

* Removed root user requirement

* Warn when `install-plotter.sh` is run by root user
This commit is contained in:
Izumi Hoshino 2024-01-26 03:00:18 +09:00 committed by GitHub
parent 8eb6d6aa5a
commit 927ea40f53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,8 +167,7 @@ if [ "$VIRTUAL_ENV" = "" ]; then
fi
if [ "$(id -u)" = 0 ]; then
echo "ERROR: Plotter can not be installed or run by the root user."
exit 1
echo "WARN: Plotter should not be installed or run by the root user."
fi
OS=""