Error if install script is run as root

pull/736/head
Itai Nelken 3 years ago
parent ad20ed62f4
commit e069487c11
No known key found for this signature in database
GPG Key ID: E45E4E2C367B8AE6

@ -7,6 +7,10 @@ function error {
cd $HOME
if [[ "$EUID" == 0 ]]; then
error "You cant install pi-apps as root! please try again as a regular user."
fi
DIRECTORY="$(readlink -f "$(dirname "$0")")"
#install yad automatically

Loading…
Cancel
Save