Skip to content

Commit

Permalink
fix(install): fix usage order on success function
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon McCaffery committed Aug 19, 2016
1 parent 132af0a commit caef0da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
CLR_SUCCESS="\033[1;32m" # BRIGHT GREEN
CLR_CLEAR="\033[0m" # DEFAULT COLOR

function success() {
echo -e "${CLR_SUCCESS}$1${CLR_CLEAR}"
}

now=$(date +"%Y%m%d_%H%M%S")

success "Creating backup path : $pwd/backup/$now..."
mkdir -p "backup/$now" 1>/dev/null

function success() {
echo -e "${CLR_SUCCESS}$1${CLR_CLEAR}"
}

if test -d ~/.uber; then
success "Backing up ~/.uber..."
cp -R ~/.uber/* "backup/$now" 1>/dev/null
Expand Down

0 comments on commit caef0da

Please sign in to comment.