From abb6ed3a26c14be29eb88d65d4a20ab6b5bfb140 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 06:30:26 +0100 Subject: [PATCH] bsl --- bash/btrfs.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }