From 0abe843c2f30eddd9524a1b68f2b5a1842fbf6ac Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 15 May 2021 20:57:25 +0200 Subject: [PATCH] add more quotation marks --- stocheck.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stocheck.sh b/stocheck.sh index 33974ff..5a672d5 100755 --- a/stocheck.sh +++ b/stocheck.sh @@ -129,10 +129,10 @@ while [ -z "$1" ]; do echo "=== START OF SELF-ASSESSMENT TEST RESULT ===" smartctl -H /dev/nvme$x | grep -e "SMART overall-health self-assessment test result:" echo "" - argend=$(echo -e "\e[4mAttribute\e[0m|\e[4mValue\e[0m") + argend="$(echo -e "\e[4mAttribute\e[0m|\e[4mValue\e[0m")" for ((z=1;z<=argsm;z++)); do - arg=$(echo "$argsl" | sed -n "$z"p) - value=$(echo "$argse" | grep -e "$arg" | xargs | cut -d ':' -f 2,3 | cut -c 2-) + arg="$(echo "$argsl" | sed -n "$z"p)" + value="$(echo "$argse" | grep -e "$arg" | xargs | cut -d ':' -f 2,3 | cut -c 2-)" argend=""$argend"" done echo "$(echo "$argend" | column -t -s "|")"