Skip to content

Commit

Permalink
Merge branch 'fix-more-browser-download-bugs'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 18, 2024
2 parents 3218b46 + 085cce1 commit 2f951df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/mullvad-browser/download-mullvad-browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function main() {
echo "[#] Verifying $PACKAGE_FILENAME signature"
if ! gpg --verify "$PACKAGE_FILENAME".asc; then
echo "[!] Failed to verify signature"
rm "$PACKAGE_FILENAME" "$PACKAGE_FILENAME.asc"
exit 1
fi
rm "$PACKAGE_FILENAME.asc"
Expand All @@ -65,7 +66,8 @@ function main() {
fi

echo "[#] $PACKAGE_FILENAME has changed"
ln -f "$PACKAGE_FILENAME" "$WORKDIR/"
cp "$PACKAGE_FILENAME" "$WORKDIR/"
# Leaving a file in `$TMP_DIR` is used as an indicator further down that something changed
}

if [[ ${1:-} == "-h" ]] || [[ ${1:-} == "--help" ]]; then
Expand Down Expand Up @@ -109,7 +111,7 @@ for repository in "${REPOSITORIES[@]}"; do
inbox_dir="$NOTIFY_DIR/$repository"

REPOSITORY_TMP_ARTIFACT_DIR=$(mktemp -qdt mullvad-browser-tmp-XXXXXXX)
cp "$TMP_DIR"/* "$REPOSITORY_TMP_ARTIFACT_DIR"
cp "$WORKDIR"/* "$REPOSITORY_TMP_ARTIFACT_DIR"

repository_notify_file="$inbox_dir/browser.src"
echo "[#] Notifying $repository_notify_file"
Expand Down

0 comments on commit 2f951df

Please sign in to comment.