Fix namspace replace event to happen earlier.
This commit is contained in:
@@ -534,6 +534,8 @@ function setPowerData() {
|
|||||||
clearPowerDataEnv
|
clearPowerDataEnv
|
||||||
return 11
|
return 11
|
||||||
fi
|
fi
|
||||||
|
# replace any strings in namespace as needed
|
||||||
|
[ -n "${VDM_REPOSITORY_REPLACEMENT}" ] && VDM_POWER_NAMESPACE=$(strReplace "${VDM_POWER_NAMESPACE}")
|
||||||
# we must add these locally to avoid collusion
|
# we must add these locally to avoid collusion
|
||||||
owner="${VDM_POWER_OWNER}"
|
owner="${VDM_POWER_OWNER}"
|
||||||
repo="${VDM_POWER_REPO}"
|
repo="${VDM_POWER_REPO}"
|
||||||
@@ -574,8 +576,6 @@ function setPowerData() {
|
|||||||
fi
|
fi
|
||||||
# check that we got data
|
# check that we got data
|
||||||
if [ -n "${VDM_API_FILE_PATH}" ] && [ -f "${VDM_API_FILE_PATH}" ]; then
|
if [ -n "${VDM_API_FILE_PATH}" ] && [ -f "${VDM_API_FILE_PATH}" ]; then
|
||||||
# replace any strings in namespace as needed
|
|
||||||
[ -n "${VDM_REPOSITORY_REPLACEMENT}" ] && namespace=$(strReplace "${namespace}")
|
|
||||||
# add the name space
|
# add the name space
|
||||||
addNamespace "${namespace}"
|
addNamespace "${namespace}"
|
||||||
# set class folder path
|
# set class folder path
|
||||||
@@ -584,7 +584,7 @@ function setPowerData() {
|
|||||||
mkdir -p "${class_path}"
|
mkdir -p "${class_path}"
|
||||||
# move the class into place
|
# move the class into place
|
||||||
mv -f "${VDM_API_FILE_PATH}" "${class_path}/${name}.php"
|
mv -f "${VDM_API_FILE_PATH}" "${class_path}/${name}.php"
|
||||||
# replace any strings in namespace as needed
|
# replace any strings in code as needed
|
||||||
[ -n "${VDM_REPOSITORY_REPLACEMENT}" ] && fileReplaceStrings "${class_path}/${name}.php"
|
[ -n "${VDM_REPOSITORY_REPLACEMENT}" ] && fileReplaceStrings "${class_path}/${name}.php"
|
||||||
else
|
else
|
||||||
# always clear memory
|
# always clear memory
|
||||||
|
Reference in New Issue
Block a user