dotar/install.sh
2017-03-12 04:19:25 +08:00

12 lines
294 B
Bash

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