btrfs-snap
btrfs-snap copied to clipboard
Replace use of bash primitive for removing trailing slashes with a
call to realpath. realpath will strip trailing slashes as well as otherwise normalize the path. The prior approach would fail for paths that were simply "/" turning mp into the empty string and failing the script.