mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
suggest sudo raspi-config if script is not run as root
This commit is contained in:
parent
37d02c865f
commit
c678dd82ff
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
|
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ $(id -u) -ne 0 ]; then
|
||||||
printf "Script must be run as root\n"
|
printf "Script must be run as root. Try 'sudo raspi-config'\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user