diff --git a/bash/btrfs.sh b/bash/btrfs.sh index 2513eda..1172d2d 100644 --- a/bash/btrfs.sh +++ b/bash/btrfs.sh @@ -1,7 +1,7 @@ -function bsl { - if [ "${1}" ] ; then - btrfs subvolume list "${1}" \ - | cut -d ' ' -f 9 \ - | sort - fi +bsl() { + if [ -n "${1}" ]; then + btrfs subvolume list "${1}" | + cut --delimiter " " --fields 9 | + sort + fi }