From 68987fa4760f69745803afd3279a5bae17fed9dd Mon Sep 17 00:00:00 2001 From: "Deavon M. McCaffery" Date: Wed, 24 Jun 2015 20:14:38 -0700 Subject: [PATCH] fix(install): test for .bash_profile before backing up --- install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install b/install index 1728aa4..e397bab 100755 --- a/install +++ b/install @@ -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