This commit is contained in:
Jakobus Schürz 2024-11-28 23:46:31 +01:00
parent 96fad664b1
commit 612980a334

View file

@ -1055,7 +1055,14 @@ get_crtime() {
is_btrfs_subvolume() { is_btrfs_subvolume() {
sudo btrfs subvolume show "$1" >/dev/null local XSUDO
if [ $(id -u) -eq 0 ]
then
XSUDO=
else
XSUDO=sudo
fi
${XSUDO:+sudo} btrfs subvolume show "$1" >/dev/null
} }
convert_to_subvolume () { convert_to_subvolume () {