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 \