From e56fde7c50370a0aba5fbc257f536b1de361bdc9 Mon Sep 17 00:00:00 2001 From: Philip Makedonski Date: Wed, 10 Jan 2024 21:36:43 +0100 Subject: [PATCH] + fixes for prepare and CI scripts --- .gitlab-ci.yml | 2 +- prepare.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68aac65..85681df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,7 @@ variables: SITE_LOCATION: "updatesite/org.etsi.mts.tdl.extras.updatesite/target" ARCHIVE_NAME: "org.etsi.mts.tdl.extras.updatesite-1.0.0-SNAPSHOT.zip" SITE_ARCHIVE: "${SITE_LOCATION}/${ARCHIVE_NAME}" - SITE_PATH: "${SITE_LOCATION}/repository/" + SITE_PATH: "${SITE_LOCATION}/repository" REPO_PREFIX: "https://labs.etsi.org/rep/top/top-extras/-/jobs" REPO_PATH: "artifacts/raw/updatesite/org.etsi.mts.tdl.extras.updatesite/target/repository/" PACKAGE_NAME: "TOP Extras Interim Build" diff --git a/prepare.sh b/prepare.sh index 519451d..44864c7 100755 --- a/prepare.sh +++ b/prepare.sh @@ -12,8 +12,9 @@ update_contents() { CLEAN=$(echo "$TARGET_PATH/" | sed 's/\//\\\//g') echo $CLEAN # Use the escaped variable in a sed command - echo "find . -type f | sed -e \"s|$CLEAN||g\" > \"$TARGET_PATH/content.txt\"" + echo "find $TARGET_PATH -type f | sed -e \"s|$CLEAN||g\" > \"$TARGET_PATH/content.txt\"" find $TARGET_PATH -type f | sed -e "s|$CLEAN||g" > "$TARGET_PATH/content.txt" + cat "$TARGET_PATH/content.txt" } process_contents() { -- GitLab