Skip to content

Commit

Permalink
preserve attributes of $CONFIG_FILE on backup
Browse files Browse the repository at this point in the history
  • Loading branch information
ipoval committed Apr 11, 2015
1 parent 1aa265c commit c81971d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case $OSTYPE in
esac

test -w $HOME/$CONFIG_FILE &&
cp $HOME/$CONFIG_FILE $HOME/$CONFIG_FILE.bak &&
cp -a $HOME/$CONFIG_FILE $HOME/$CONFIG_FILE.bak &&
echo "Your original $CONFIG_FILE has been backed up to $CONFIG_FILE.bak"

cp $HOME/.bash_it/template/bash_profile.template.bash $HOME/$CONFIG_FILE
Expand Down

0 comments on commit c81971d

Please sign in to comment.