Commit 44452b6b authored by lyxell's avatar lyxell

Disallow sudo in install.sh

parent 3cdbf3ba
...@@ -13,6 +13,11 @@ CREW_PACKAGES_PATH=$CREW_LIB_PATH/packages ...@@ -13,6 +13,11 @@ CREW_PACKAGES_PATH=$CREW_LIB_PATH/packages
user=$(whoami) user=$(whoami)
architecture=$(uname -m) architecture=$(uname -m)
if [ $EUID -eq 0 ]; then
echo 'Chromebrew should not be run as root.'
exit 1;
fi
if [ $architecture != "i686" ] && [ $architecture != "x86_64" ]; then if [ $architecture != "i686" ] && [ $architecture != "x86_64" ]; then
echo 'Your device is not supported by Chromebrew yet.' echo 'Your device is not supported by Chromebrew yet.'
exit 1; exit 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment