Commit f4d34d28 authored by Michal Siwek's avatar Michal Siwek

Abort installation if device is incompatible

parent 1dbb1afa
...@@ -7,6 +7,12 @@ CREW_DEST_DIR=$CREW_BREW_DIR/dest ...@@ -7,6 +7,12 @@ CREW_DEST_DIR=$CREW_BREW_DIR/dest
CREW_PACKAGES_PATH=$CREW_LIB_PATH/packages CREW_PACKAGES_PATH=$CREW_LIB_PATH/packages
user=$(whoami) user=$(whoami)
architecture=$(uname -m)
if [ $architecture != "i686" ]; then
echo 'Your device is not supported by Chromebrew yet.'
exit 1;
fi
#prepare directories #prepare directories
sudo mkdir -p $CREW_LIB_PATH && sudo chown -R $user:$user $CREW_LIB_PATH sudo mkdir -p $CREW_LIB_PATH && sudo chown -R $user:$user $CREW_LIB_PATH
...@@ -21,7 +27,6 @@ cd $CREW_BREW_DIR ...@@ -21,7 +27,6 @@ cd $CREW_BREW_DIR
#download ruby #download ruby
echo "Downloading ruby..." echo "Downloading ruby..."
architecture=$(uname -m)
case "$architecture" in case "$architecture" in
"i686") "i686")
......
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