-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·42 lines (31 loc) · 771 Bytes
/
Copy pathbootstrap
File metadata and controls
executable file
·42 lines (31 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e
readonly dotfiles="$HOME/src/dotfiles"
readonly repo='https://github.com/justinforce/dotfiles'
echo -e "\e[1;32mReticulating splines...\e[m"
##############
# Update APT #
##############
sudo apt-get update
###################
# Install prereqs #
###################
sudo apt-get install --yes git
########################
# Clone or update repo #
########################
if [ -e "$dotfiles" ]; then
cd "$dotfiles"
git pull origin master
git submodule sync
git submodule update --init
else
mkdir -p "$(dirname "$dotfiles")"
git clone --recursive "$repo" "$dotfiles"
fi
######################################
# Bundle and run preferred rake task #
######################################
cd "$dotfiles"
bundle install
rake install