Skip to content

Commit

Permalink
Don't install some files unless you are Mike.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Apr 19, 2013
1 parent 6f09b18 commit 289026b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions install-dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ for DOTFILE in *; do

echo $DOTFILE | egrep -q '(dotfiles|\.txt|\.md)' && continue

# Don't install gitconfig-user unless you're also called Mike.
echo $DOTFILE | grep -q 'gitconfig-user' \
&& echo $USER | grep -vq 'mike' && continue
# Don't install some files unless you're also called Mike.
if echo $USER | grep -vq 'mike'
then
echo $DOTFILE | grep -q 'gitconfig-user' && continue
echo $DOTFILE | grep -q 'ssh' && continue
echo $DOTFILE | grep -q 'brew-cleanup-installed' && continue
fi

echo $DOTFILE | grep -q 'sublime' && HOMEFILE="$SUBLIME" \
&& mkdir -p "$HOMEFILE"
Expand Down

0 comments on commit 289026b

Please sign in to comment.