Skip to content

Commit

Permalink
Add install and update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-star committed Sep 9, 2013
1 parent f441bc5 commit b910a5a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
21 changes: 21 additions & 0 deletions install.sh
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

#set -e
#set -x

[[ $(basename "${BASH_SOURCE}") = "install.sh" ]] && install=true || install=false
[[ "${install}" = true ]] && update=false || update=true
echo "install: ${install}"
echo "update: ${update}"

if $install; then
echo -n "Installing..."
source "script/install.sh"
fi

if $update; then
echo -n "Updating..."
source "script/update.sh"
fi

echo "Done"
2 changes: 1 addition & 1 deletion script/install.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
#set -e
#set -x

# Create symlink to project files in home directory.
Expand Down
5 changes: 5 additions & 0 deletions script/update.sh
@@ -0,0 +1,5 @@
#!/bin/bash

set -x

wget "https://raw.github.com/git/git/master/contrib/completion/git-completion.bash" -O git/git-completion.bash
5 changes: 0 additions & 5 deletions update.sh

This file was deleted.

1 change: 1 addition & 0 deletions update.sh

0 comments on commit b910a5a

Please sign in to comment.