bugfix in unuse overlay

- remove trailing slash if set
This commit is contained in:
Achim Gsell
2021-02-02 17:23:10 +01:00
parent b14bf6e42f
commit 87f7ab7c5c
+1
View File
@@ -1435,6 +1435,7 @@ subcommand_unuse() {
unuse() {
unuse_overlay() {
overlay=${overlay%:*} # ignore any modifier
overlay=${overlay%/} # remove trailing '/' if there is one
[[ -d "${overlay}" ]] || \
std::die 3 "%s %s: %s -- %s\n" \
"${CMD}" "${subcommand}" \