diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-18 15:05:19 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-18 15:05:19 +0200 |
commit | 9885a61166bda24c9860078ae167779d6764a7cc (patch) | |
tree | c4d4969d9f1a498a8b9317e8fb35ebdd292ad09c /.local | |
parent | update (diff) | |
download | dotfiles-bsd-9885a61166bda24c9860078ae167779d6764a7cc.tar.gz dotfiles-bsd-9885a61166bda24c9860078ae167779d6764a7cc.tar.bz2 dotfiles-bsd-9885a61166bda24c9860078ae167779d6764a7cc.tar.xz dotfiles-bsd-9885a61166bda24c9860078ae167779d6764a7cc.tar.zst dotfiles-bsd-9885a61166bda24c9860078ae167779d6764a7cc.zip |
update
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/status/sb-disk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/status/sb-disk b/.local/bin/status/sb-disk index 2e19c3b..08bd8ea 100755 --- a/.local/bin/status/sb-disk +++ b/.local/bin/status/sb-disk @@ -3,7 +3,7 @@ echo -n " " df=$(df -h -T | grep '/$') if echo "$df" | grep zfs >/dev/null 2>&1; then - zpool list | tail -n1 | awk '{print $8" - "$3"/"$2}' + zpool list $(echo $df | sed 's/\/.*//')| tail -n1 | awk '{print $8" - "$3"/"$2}' else echo "$df" | awk '{print $6" - "$4"/"$3}' fi |