Change installation script

Instead of asking the user to clone the repo and running rake
install, there's is now an easy .sh script that can be downloaded
and invoked in a single line.

The script takes a parameter "ask" if the use prefers to control
which modules of yadr are installed.
This commit is contained in:
Fabio Gallonetto
2013-04-07 11:17:48 +01:00
parent 7e1f628d8f
commit 5df698f6d2
2 changed files with 17 additions and 5 deletions

11
install.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone https://github.com/skwp/dotfiles.git "$HOME/.yadr"
cd "$HOME/.yadr"
[ "$1" == "ask" ] && export ASK="true"
rake install
else
echo "YADR is already installed"
fi