From 33fa1a1d8cc84a24cd00fcd18f7bd4563ae78cfb Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 29 Aug 2022 12:52:33 +0000 Subject: changed way shmk displays status output --- src/util/shmk.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/shmk.sh b/src/util/shmk.sh index a7b0d37..75b97f7 100755 --- a/src/util/shmk.sh +++ b/src/util/shmk.sh @@ -147,12 +147,13 @@ interpret_shmk () { i=-1 echo "$cmdlist" | while read -r cmd; do i=$((i+1)) - printf "${LIGHT_BLACK}[${LIGHT_BLUE}%s${LIGHT_BLACK}/${LIGHT_BLUE}%s${LIGHT_BLACK}] ${LIGHT_WHITE}%s${RESET}\n" "$i" "$len" "${cmd#*#}" + printf "${LIGHT_BLACK}[${LIGHT_BLUE}%s${LIGHT_BLACK}/${LIGHT_BLUE}%s${LIGHT_BLACK}] ${LIGHT_WHITE}%s${RESET}%s" "$i" "$len" "${cmd#*#}" "$($verbose && printf "\n" || printf "\r")" ${cmd%#*} 2>&1 > $out || { - printf "${RED}Error $?\n" + printf "\n${RED}Error $?\n" exit 1 } done + printf "\n" } search_path=". -- cgit v1.2.1