2013-04-07 18:17:48 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/.yadr" ]; then
|
|
|
|
echo "Installing YADR for the first time"
|
2017-03-12 04:18:59 +08:00
|
|
|
git clone --depth=1 https://github.com/hophacker/dotfiles.git "$HOME/.yadr"
|
2013-04-07 18:17:48 +08:00
|
|
|
cd "$HOME/.yadr"
|
2014-04-02 02:53:49 +08:00
|
|
|
[ "$1" = "ask" ] && export ASK="true"
|
2013-04-07 18:17:48 +08:00
|
|
|
rake install
|
|
|
|
else
|
|
|
|
echo "YADR is already installed"
|
|
|
|
fi
|