Skip to content

Commit

Permalink
[easy] Fix "tail: cannot open '2' for reading" (#81)
Browse files Browse the repository at this point in the history
There was a typo in the `tail` command.
  • Loading branch information
Daniel15 authored Dec 3, 2023
1 parent 8584f28 commit c2ccbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yabs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2ccbc2

Please sign in to comment.