diff --git a/bin/vps b/bin/vps index 2b5b79e..a96e649 100755 --- a/bin/vps +++ b/bin/vps @@ -2142,8 +2142,12 @@ cmdline.spec::cmd:stats:run() { :state-dir: for resource in "${resources[@]}"; do - [ "$opt_format" == "pretty" ] && echo "${WHITE}$resource${NORMAL}:" - stats:"$resource" "$opt_format" 2>&1 | prefix " " + if [ "$opt_format" == "pretty" ]; then + echo "${WHITE}$resource${NORMAL}:" + stats:"$resource" "$opt_format" 2>&1 | prefix " " + else + stats:"$resource" "$opt_format" 2>&1 | prefix "$resource " + fi set_errlvl "${PIPESTATUS[0]}" || return 1 done }