Skip to content

Commit

Permalink
fix(install): test for .bash_profile before backing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Aug 19, 2016
1 parent 6b3106e commit 68987fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ if ! test -f ~/.ssh; then
mkdir -p ~/.ssh
fi

cp ~/.bash_profile backup/bash_profile
if test -f ~/.bashprofile; then
cp ~/.bash_profile backup/bash_profile
fi

cp -R ~/.ssh/* backup/ssh

cp -Rf src/* ~/.ssh
Expand Down

0 comments on commit 68987fa

Please sign in to comment.