From 4129c23d3b992c275070edc09c766701fd0005ee Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 23 Mar 2022 12:26:21 -0700 Subject: [PATCH 1/2] changed format for pretty_date --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index b1d12ab..2fa2a13 100644 --- a/functions +++ b/functions @@ -5,7 +5,7 @@ scriptname="${0##*/}" rundir="${0%/*}" runuser="$(whoami)" -pretty_date="`date +%Y-%m-%d_%H-%M-%S`" +pretty_date="$(date +%Y-%m-%d_%H-%M-%S)" # Escape characters (if your shell uses a different one, you can modify it here) # By default this is using the usual bash escape code From a94addb4925e241fe4b2beca3c91863f119e2cd2 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 23 Mar 2022 14:19:20 -0700 Subject: [PATCH 2/2] fixed syntax error on arrow variable --- functions | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/functions b/functions index 2fa2a13..a8138fb 100644 --- a/functions +++ b/functions @@ -44,7 +44,7 @@ fi # Extra Unicode Character Manipulation return_arrow=$(echo -e '\u21B6') -enter_arrow$(echo -e '\u21B5') +enter_arrow=$(echo -e '\u21B5') # For drawing pretty boxes terminal_width=$(tput cols) @@ -64,19 +64,21 @@ box-single(){ right_top_border=$(echo -e '\u2513') left_bottom_border=$(echo -e '\u2517') right_bottom_border=$(echo -e '\u251b') + box_break_line=$(echo -e '\u25AB') # ---------------------------------------# } # Box border type double-line box-double(){ # ---------------------------------------# - top_border=$(echo -e '\u2501') - left_border=$(echo -e '\u2503') - right_border=$(echo -e '\u2503') - left_top_border=$(echo -e '\u250f') - right_top_border=$(echo -e '\u2513') - left_bottom_border=$(echo -e '\u2517') - right_bottom_border=$(echo -e '\u251b') + top_border=$(echo -e '\u2550') + left_border=$(echo -e '\u2551') + right_border=$(echo -e '\u2551') + left_top_border=$(echo -e '\u2554') + right_top_border=$(echo -e '\u2557') + left_bottom_border=$(echo -e '\u255A') + right_bottom_border=$(echo -e '\u255D') + box_break_line=$(echo -e '\u25AB') # ---------------------------------------# } @@ -89,6 +91,7 @@ box-singlechar(){ right_top_border=$borderchar left_bottom_border=$borderchar right_bottom_border=$borderchar + box_break_line="-" # ---------------------------------------# } @@ -125,9 +128,7 @@ boxline() { } boxseparator(){ - echo -n "$left_border" - repchar "-" $((BOXWIDTH-1)) - echo -n "$right_border" + repchar "$box_break_line" $((BOXWIDTH-2)) echo }