Skip to content

Commit

Permalink
💚 fix echo msg
Browse files Browse the repository at this point in the history
  • Loading branch information
xiagw committed Jul 30, 2023
1 parent 5941f0b commit bd9b98a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ _msg() {
purple | question | ques) color_on='\033[0;35m' ;; # Purple
cyan) color_on='\033[0;36m' ;; # Cyan
time)
color_on="[$(for ((i = 1; i <= ${#STEP}; i++)); do echo -n '+'; done)] $(date +%Y%m%d-%T-%u), "
if [ -z "$STEP" ]; then
color_on="[+] $(date +%Y%m%d-%T-%u), "
else
color_on="[$(for ((i = 1; i <= ${#STEP}; i++)); do echo -n '+'; done)] $(date +%Y%m%d-%T-%u), "
fi
color_off=''
;;
step | timestep)
STEP=$((${STEP:-0} + 1))
color_on="\033[0;36m[${STEP}] $(date +%Y%m%d-%T-%u), \033[0m"
color_on="\033[0;36m[$((${STEP:-0} + 1))] $(date +%Y%m%d-%T-%u), \033[0m"
color_off=' ... start'
;;
stepend | end)
Expand Down

0 comments on commit bd9b98a

Please sign in to comment.