Last active
August 2, 2016 10:31
-
-
Save etam/0de1c43514927c09e0074240ea3b6ae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
die() { | |
echo "$1" >&2 | |
exit 1 | |
} | |
(( $# > 1 )) \ | |
&& die "too many arguments" | |
path="${1:-.}" | |
sudo btrfs subvolume list --sort=path -t "$path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment