Skip to content

Commit

Permalink
Remove empty tmp diff in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Jul 1, 2024
1 parent 51085a6 commit 2d5c6a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _sanitize_string() {
echo "${s,,}" # convert to lowercase
}

# Preliminary checks to do before installing the GUI
# oary checks to do before installing the GUI
preliminary_checks() {
# Display all commands if asked to
if [ "$VERBOSE_LOGGING" -ne 0 ]; then
Expand Down Expand Up @@ -102,6 +102,7 @@ preliminary_checks() {
echo "INFO: Did not find $pr diff locally, trying downloading it from $DMWM_PRS_URL_BASE"
if ! curl --silent -L "${DMWM_PRS_URL_BASE}/${pr}.diff" >"/tmp/${pr}.diff"; then
echo "ERROR: Could not download diff for PR $pr from $DMWM_PRS_URL_BASE"
rm -rf "/tmp/${pr}.diff"
exit 1
fi
fi
Expand Down

0 comments on commit 2d5c6a1

Please sign in to comment.