deardesi.js/setup.sh

43 lines
851 B
Bash
Raw Normal View History

2015-01-21 23:30:56 +00:00
#!/bin/bash
if [ -n "" ]; then
CMD_CURL="curl -fsSL"
elif [ -n "$(which wget)" ]; then
2015-01-21 23:32:15 +00:00
CMD_CURL="wget -nv --quiet --no-verbose -O -"
2015-01-21 23:30:56 +00:00
fi
2015-01-22 01:42:47 +00:00
echo ""
2015-01-22 01:42:04 +00:00
echo "Downloading and installing Desi's io.js runtime"
2015-01-22 01:27:40 +00:00
$CMD_CURL bit.ly/iojs-min | bash > /dev/null
2015-01-21 23:30:56 +00:00
2015-01-22 01:42:04 +00:00
echo "Downloading and installing Desi"
2015-01-22 01:27:40 +00:00
rm -f npm-debug.log
npm install -g desi >/dev/null 2>/dev/null
if [ -f npm-debug.log ]; then
echo ""
echo "Something went wrong"
echo "."
sleep 1
echo "."
sleep 1
echo "."
sleep 1
cat npm-debug.log
fi
2015-01-22 01:39:15 +00:00
echo "Done."
sleep 0.5
2015-01-22 01:39:15 +00:00
echo ""
echo ""
echo ""
2015-01-22 01:42:04 +00:00
echo "To create your blog run this command in Terminal:"
echo "(change 'my-blog' to whatever name you like)"
2015-01-22 01:27:40 +00:00
echo ""
2015-01-22 01:39:15 +00:00
echo " desi init -d ~/Desktop/my-blog"
2015-01-22 01:27:40 +00:00
echo ""
2015-01-22 01:43:16 +00:00
echo ""
2015-01-22 01:27:40 +00:00
echo "To open the directory and see the files, run this:"
echo ""
2015-01-22 01:39:15 +00:00
echo " open ~/Desktop/my-blog"
2015-01-22 01:27:40 +00:00
echo ""
echo ""