File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313if [ " $# " -ne 3 ];
1414then
15- echo " Illegal number of parameters " && exit 1
15+ echo " Required arguments are missing " && exit 1
1616fi
1717IMAGE_NAME=$1
1818WORKSPACE=$2
@@ -21,17 +21,19 @@ RELEASE_TAG=$3
2121DIST_PATH=" ${WORKSPACE} /dist"
2222REPO_PATH=" ${WORKSPACE} "
2323
24- SIMPLE_INDEX_PATH=$( find " $DIST_PATH " -depth -type f -name ' macaron-*-pep503-simple-index.tar' | head -n 1)
24+ SIMPLE_INDEX_PATH=$( find " ${ DIST_PATH} " -depth -type f -name ' macaron-*-pep503-simple-index.tar' | head -n 1)
2525if [[ -z " ${SIMPLE_INDEX_PATH} " ]]; then
2626 echo " Unable to find Macaron Simple Index in ${DIST_PATH} ."
2727 exit 1
2828fi
29+ SIMPLE_INDEX_PATH=$( realpath --relative-to " ${REPO_PATH} " " ${SIMPLE_INDEX_PATH} " )
2930
30- REQUIREMENTS_PATH=$( find " $DIST_PATH " -depth -type f -name ' macaron-*-requirements.txt' | head -n 1)
31+ REQUIREMENTS_PATH=$( find " ${ DIST_PATH} " -depth -type f -name ' macaron-*-requirements.txt' | head -n 1)
3132if [[ -z " ${REQUIREMENTS_PATH} " ]]; then
3233 echo " Unable to find Macaron requirements.txt in ${DIST_PATH} ."
3334 exit 1
3435fi
36+ REQUIREMENTS_PATH=$( realpath --relative-to " ${REPO_PATH} " " ${REQUIREMENTS_PATH} " )
3537
3638if [[ -z " ${RELEASE_TAG} " ]];
3739then
You can’t perform that action at this time.
0 commit comments