@@ -61,7 +61,7 @@ externalModulesDir="CodeProject.AI-Modules"
6161serverDir=" CodeProject.AI-Server"
6262
6363# Location of the utils script in the main CodeProject.AI server repo
64- utilsScriptGitHubUrl=' https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts/utils.sh '
64+ utilsScriptGitHubUrl=' https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts'
6565
6666# Override some values via parameters ::::::::::::::::::::::::::::::::::::::::::
6767
@@ -114,10 +114,6 @@ popd >/dev/null
114114sdkPath=" ${rootDirPath} /${srcDirName} /${sdkDir} "
115115utilsScriptsDirPath=" ${rootDirPath} /src/scripts"
116116
117- if [ " ${githubAction} " == true ]; then
118- utilsScriptsDirPath=" ${utilsScriptGitHubUrl} "
119- fi
120-
121117# Standard output may be used as a return value in the functions. Expose stream
122118# 3 so we can do 'echo "Hello, World!" >&3' within these functions for debugging
123119# without interfering with return values.
@@ -144,13 +140,15 @@ function correctLineEndings () {
144140 fi
145141}
146142
147- if [ " ${githubAction} " != true ]; then
143+ if [ " ${githubAction} " == true ]; then
144+ curl -sL ${utilsScriptGitHubUrl} /utils.sh -o utils.sh
145+ source utils.sh
146+ rm utils.sh
147+ else
148148 correctLineEndings ${utilsScriptsDirPath} /utils.sh
149+ source ${utilsScriptsDirPath} /utils.sh
149150fi
150151
151- # "platform" will be set by this script
152- source ${utilsScriptsDirPath} /utils.sh
153-
154152# Helper method ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
155153
156154function doModulePackage () {
@@ -259,7 +257,7 @@ success='true'
259257
260258if [ " ${singleModule} " == true ]; then
261259
262- packageModuleDirPath=$( pwd) )
260+ packageModuleDirPath=$( pwd)
263261 packageModuleDirName=" $( basename $( pwd) ) "
264262 packageModuleId=$( getModuleIdFromModuleSettings " ${packageModuleDirPath} /modulesettings.json" )
265263
0 commit comments