Skip to content

Commit 4f90307

Browse files
committed
fix(ci): duh 🙏🏻
1 parent ed76154 commit 4f90307

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/dev_scripts/build_docker.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
if [ "$#" -ne 3 ];
1414
then
15-
echo "Illegal number of parameters" && exit 1
15+
echo "Required arguments are missing" && exit 1
1616
fi
1717
IMAGE_NAME=$1
1818
WORKSPACE=$2
@@ -21,17 +21,19 @@ RELEASE_TAG=$3
2121
DIST_PATH="${WORKSPACE}/dist"
2222
REPO_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)
2525
if [[ -z "${SIMPLE_INDEX_PATH}" ]]; then
2626
echo "Unable to find Macaron Simple Index in ${DIST_PATH}."
2727
exit 1
2828
fi
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)
3132
if [[ -z "${REQUIREMENTS_PATH}" ]]; then
3233
echo "Unable to find Macaron requirements.txt in ${DIST_PATH}."
3334
exit 1
3435
fi
36+
REQUIREMENTS_PATH=$(realpath --relative-to "${REPO_PATH}" "${REQUIREMENTS_PATH}")
3537

3638
if [[ -z "${RELEASE_TAG}" ]];
3739
then

0 commit comments

Comments
 (0)