From c2ccbc2771a2407dbeea0889f4b90e88189e95f0 Mon Sep 17 00:00:00 2001 From: Daniel Lo Nigro Date: Sun, 3 Dec 2023 14:02:18 -0800 Subject: [PATCH] [easy] Fix "tail: cannot open '2' for reading" (#81) There was a typo in the `tail` command. --- yabs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yabs.sh b/yabs.sh index 258400a..5040173 100644 --- a/yabs.sh +++ b/yabs.sh @@ -529,7 +529,7 @@ elif [ -z "$SKIP_FIO" ]; then fi done - size_b=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | tail -c 2 | head -c 1) + size_b=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | tail -c -2 | head -c 1) free_space=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | head -c -2) if [[ $size_b == 'T' ]]; then