Skip to content

Commit 2d5c6a1

Browse files
committed
Remove empty tmp diff in case of error
1 parent 51085a6 commit 2d5c6a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deploy_dqmgui.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ _sanitize_string() {
6666
echo "${s,,}" # convert to lowercase
6767
}
6868

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

0 commit comments

Comments
 (0)