mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-26 01:23:09 +02:00
bugfix in unuse overlay
- remove trailing slash if set
This commit is contained in:
@@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user