From 6ab26f51873cdb080fc40ec856690af8d4a8ac16 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 12:41:54 +0100 Subject: [PATCH] bsl --- sh/btrfs.sh | 8 -------- sh/cmd/btrfs.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 sh/btrfs.sh diff --git a/sh/btrfs.sh b/sh/btrfs.sh deleted file mode 100644 index 253be28..0000000 --- a/sh/btrfs.sh +++ /dev/null @@ -1,8 +0,0 @@ -bsl() { sh_btrfs_subvolume_list "${@}"; } -sh_btrfs_subvolume_list() { - if [ -n "${1}" ]; then - btrfs subvolume list "${1}" | - cut --delimiter " " --fields 9 | - sort - fi -} diff --git a/sh/cmd/btrfs.sh b/sh/cmd/btrfs.sh index 4ec3ff6..fd880c1 100644 --- a/sh/cmd/btrfs.sh +++ b/sh/cmd/btrfs.sh @@ -47,6 +47,15 @@ sh_btrfs_subvolume_delete() { "${@}" } +bsl() { sh_btrfs_subvolume_list "${@}"; } +sh_btrfs_subvolume_list() { + if [ -n "${1}" ]; then + btrfs subvolume list "${1}" | + cut --delimiter " " --fields 9 | + sort + fi +} + bss() { sh_btrfs_subvolume_snapshot "${@}"; } sh_btrfs_subvolume_snapshot() { btrfs \