From caef0da403d79a66396e3843a3967a7f2a3831c3 Mon Sep 17 00:00:00 2001 From: Deavon McCaffery Date: Thu, 11 Aug 2016 08:16:53 -0700 Subject: [PATCH] fix(install): fix usage order on success function --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 55007ce..2eae69e 100755 --- a/install.sh +++ b/install.sh @@ -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