Skip to content

Commit

Permalink
strip extension from zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckisson committed May 10, 2024
1 parent 6f8dbc4 commit 5c38920
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CI/deploy-mudlet-for-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ moveToUploadDir() {
echo "=== Copying files to upload directory ==="
#rsync -avR "${PACKAGE_DIR}"/./* "$uploadDirUnix"
mv "${PACKAGE_DIR}/$uploadFilename" "$uploadDir/"

if [[ "$uploadFilename" == *.zip ]]; then
$uploadFilename="${uploadFilename%.zip}"

Check failure on line 136 in CI/deploy-mudlet-for-windows.sh

View check run for this annotation

codefactor.io / CodeFactor

CI/deploy-mudlet-for-windows.sh#L136

Don't use $ on the left side of assignments. (SC2281)
fi

# Append these variables to the GITHUB_ENV to make them available in subsequent steps
echo "FOLDER_TO_UPLOAD=${uploadDir}\\" >> "$GITHUB_ENV"
Expand All @@ -146,7 +150,7 @@ if [[ "$GITHUB_REPO_TAG" == "false" ]] && [[ "$PublicTestBuild" == false ]]; the
7z a "Mudlet-$VERSION$MUDLET_VERSION_BUILD-$BUILD_COMMIT-windows-$BUILD_BITNESS.zip" "$PACKAGE_DIR/*"

# Define the upload filename
uploadFilename="Mudlet-$VERSION$MUDLET_VERSION_BUILD-$BUILD_COMMIT-windows-$BUILD_BITNESS"
uploadFilename="Mudlet-$VERSION$MUDLET_VERSION_BUILD-$BUILD_COMMIT-windows-$BUILD_BITNESS.zip"

# Move packaged files to the upload directory
moveToUploadDir "$uploadFilename"
Expand Down

0 comments on commit 5c38920

Please sign in to comment.