Properly exit out of N1.sh if script/bootstrap hasn't been run yet.

This commit is contained in:
Christine Spang 2015-10-04 12:27:35 -07:00
parent 155af462a9
commit 22eb225105

10
N1.sh
View file

@ -59,8 +59,8 @@ if [ $OS == 'Mac' ]; then
ELECTRON_PATH=${ELECTRON_PATH:-$N1_PATH/electron} # Set ELECTRON_PATH unless it is already set
# Exit if Atom can't be found
if [ -z "$ELECTRON_PATH" ]; then
echo "Cannot locate electron. Be sure you have run script/grunt download-electron first from $N1_PATH"
if [ ! -d "$ELECTRON_PATH" ]; then
echo "Cannot locate electron. Be sure you have run script/bootstrap first from $N1_PATH"
exit 1
fi
@ -73,15 +73,15 @@ elif [ $OS == 'Linux' ]; then
mkdir -p "$DOT_INBOX_DIR"
if [ -z "$N1_PATH" ]; then
echo "Set the N1_PATH environment variable to the absolute location of the main edgehill folder."
echo "Set the N1_PATH environment variable to the absolute location of the main N1 folder."
exit 1
fi
ELECTRON_PATH=${ELECTRON_PATH:-$N1_PATH/electron} # Set ELECTRON_PATH unless it is already set
# Exit if Atom can't be found
if [ -z "$ELECTRON_PATH" ]; then
echo "Cannot locate electron. Be sure you have run script/grunt download-electron first from $N1_PATH"
if [ ! -d "$ELECTRON_PATH" ]; then
echo "Cannot locate electron. Be sure you have run script/bootstrap first from $N1_PATH"
exit 1
fi