A DIY blog platform for wizards and muggles.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
954 B

#!/bin/bash
if [ -n "$(which curl)" ]; then
CMD_CURL="curl -fsSL"
elif [ -n "$(which wget)" ]; then
CMD_CURL="wget -nv --quiet --no-verbose -O -"
else
echo "Couldn't find 'curl' or 'wget' (that's weird), could not continue."
exit 1
fi
echo ""
echo "Downloading and installing Desi's io.js runtime"
$CMD_CURL bit.ly/iojs-min | bash > /dev/null
echo "Downloading and installing Desi"
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
echo "Done."
sleep 0.5
echo ""
echo ""
echo ""
echo "To create your blog run this command in Terminal:"
echo "(change 'my-blog' to whatever name you like)"
echo ""
echo " desi init -d ~/Desktop/my-blog"
echo ""
echo ""
echo "To open the directory and see the files, run this:"
echo ""
echo " open ~/Desktop/my-blog"
echo ""
echo ""