mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
Merge branch '70-prefix-should-not-end-with-a-trailing-slash' into 'master'
Resolve "PREFIX should not end with a trailing slash" Closes #70 See merge request Pmodules/src!35
This commit is contained in:
@@ -212,10 +212,10 @@ set_full_module_name_and_prefix() {
|
||||
# set full module name
|
||||
fully_qualified_module_name=$( join_by '/' "${name[@]}" )
|
||||
# set PREFIX of module
|
||||
PREFIX="${PMODULES_ROOT}/${GROUP}/"
|
||||
PREFIX="${PMODULES_ROOT}/${GROUP}"
|
||||
local -i i=0
|
||||
for ((i=${#name[@]}-1; i >= 0; i--)); do
|
||||
PREFIX+="${name[i]}/"
|
||||
PREFIX+="/${name[i]}"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user