Skip to content

Commit c2ccbc2

Browse files
authored
[easy] Fix "tail: cannot open '2' for reading" (masonr#81)
There was a typo in the `tail` command.
1 parent 8584f28 commit c2ccbc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yabs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ elif [ -z "$SKIP_FIO" ]; then
529529
fi
530530
done
531531

532-
size_b=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | tail -c 2 | head -c 1)
532+
size_b=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | tail -c -2 | head -c 1)
533533
free_space=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | head -c -2)
534534

535535
if [[ $size_b == 'T' ]]; then

0 commit comments

Comments
 (0)