1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-22 14:41:15 +00:00

add more quotation marks

This commit is contained in:
Nils 2021-05-15 20:57:25 +02:00
parent 0e5fdcdb52
commit 0abe843c2f
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

View File

@ -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 "|")"