Skip to content

Commit

Permalink
Better Install Messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganBresnahan committed May 7, 2021
1 parent e634e1b commit 8c267d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
# Exits if an error occurs.
set -e

echo "Installing Meow."
echo "Copying meow into /opt/meow"

cp -a `pwd` /opt/meow

echo "***IMPORTANT***"
echo "Add 'export PATH=\$PATH:/opt/meow/executable' to your shell's profile then reload your shell and the installation will be complete."
echo "If you have verified the installation you can remove the repository you have just cloned."
if [ ! -d /opt/meow ]; then
echo "Installing Meow."
echo "Copying meow into /opt/meow"

cp -a `pwd` /opt/meow

echo "***IMPORTANT***"
echo "Add 'export PATH=\$PATH:/opt/meow/executable' to your shell's profile then reload your shell and the installation will be complete."
echo "If you have verified the installation you can remove the repository you have just cloned."
else
echo "*** Meow already installed at /opt/meow"
echo "If you need to update, run: meow update"
echo "If you need to remove the old installation, run: meow uninstall"
fi

# Copyright 2021 Logan Bresnahan

Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi
fi
fi
else
echo "Cannot check for an update. You are not on the stable branch. Navigate to /opt/meow and run 'git checkout stable'. You can then run 'meow update'."
echo "*** Cannot check for an update. You are not on the stable branch. Navigate to /opt/meow and run: git checkout stable && meow update"
fi
)

Expand Down

0 comments on commit 8c267d8

Please sign in to comment.