Skip to content

Commit 2779536

Browse files
committed
fixes
1 parent 9d58f4b commit 2779536

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ fi
1313
if [ ! -f /usr/local/bin/meteorify ];
1414
then
1515
sudo ln -s "$INSTALL_DIR/meteorify.sh" /usr/local/bin/meteorify
16+
chmod 777 /usr/local/bin/meteorify
1617
fi

meteorify.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
CURRENT_DIR=`pwd`
44
TEMP_DIR="$HOME/.meteorify/temp"
55

6-
mkdir -p $TEMP_DIR
7-
cd $TEMP_DIR
8-
meteor create proj "$@"
9-
cp -R $TEMP_DIR/proj/.meteor $CURRENT_DIR
6+
if [ -d ".meteor" ]; then
7+
echo "This is already a Meteor app!"
8+
exit 1
9+
fi
10+
11+
mkdir -p $TEMP_DIR &> /dev/null
12+
cd $TEMP_DIR &> /dev/null
13+
rm -rf proj &> /dev/null
14+
meteor create proj "$@" &> /dev/null
15+
cp -R $TEMP_DIR/proj/.meteor $CURRENT_DIR &> /dev/null

0 commit comments

Comments
 (0)