Skip to content

Commit

Permalink
Better string parsing, remove tailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
yorik committed Aug 12, 2024
1 parent 1f5aa9c commit 4c4caa1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zk_toolbox/zkup/zkup
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ ensure() {
}

say() {
local action=$(echo "$1" | awk '{print $1}')
local rest=$(echo "$1" | sed 's/^[^ ]* //')
local action="${1%% *}"
local rest="${1#"$action" }"

echo -e "\033[1;32m$action\033[0m $rest"
}
Expand All @@ -201,12 +201,12 @@ zktoolbox_banner() {
███████╗██╗ ██╗ ████████╗ ██████╗ ██████╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
╚══███╔╝██║ ██╔╝ ╚══██╔══╝██╔═══██╗██╔═══██╗██║ ██╔══██╗██╔═══██╗╚██╗██╔╝
███╔╝ █████╔╝ ██║ ██║ ██║██║ ██║██║ ██████╔╝██║ ██║ ╚███╔╝
███╔╝ ██╔═██╗ ██║ ██║ ██║██║ ██║██║ ██╔══██╗██║ ██║ ██╔██╗
███╔╝ █████╔╝ ██║ ██║ ██║██║ ██║██║ ██████╔╝██║ ██║ ╚███╔╝
███╔╝ ██╔═██╗ ██║ ██║ ██║██║ ██║██║ ██╔══██╗██║ ██║ ██╔██╗
███████╗██║ ██╗ ██║ ╚██████╔╝╚██████╔╝███████╗██████╔╝╚██████╔╝██╔╝ ██╗
╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝
A Comprehensive Toolkit for Creating and Managing ZK Stack Chains
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Expand Down

0 comments on commit 4c4caa1

Please sign in to comment.