summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-29 12:52:33 +0000
committerdavidovski <david@davidovski.xyz>2022-08-29 12:52:33 +0000
commit33fa1a1d8cc84a24cd00fcd18f7bd4563ae78cfb (patch)
tree9b84b0b630dfddc458b464691d6eb33472794b3b /src/util
parentb0ef6bc7d3971afb48ebd5becf56737256f2aed5 (diff)
changed way shmk displays status outputv1.8.1
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/shmk.sh5
1 files 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=".