summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/udd-query.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/udd-query.sh b/bin/udd-query.sh
index 0efb18e8..fb62c8cb 100755
--- a/bin/udd-query.sh
+++ b/bin/udd-query.sh
@@ -62,7 +62,6 @@ multiarch_versionskew() {
# TODO: show versions (per arch) too
done
fi
- rm $UDD
}
orphaned_without_o_bug() {
@@ -95,13 +94,15 @@ orphaned_without_o_bug() {
done
fi
- rm -f "$UDD" "$WNPPRM" "$SORTED_UDD"
+ rm -f "$WNPPRM" "$SORTED_UDD"
}
#
# main
#
UDD=$(mktemp)
+function rmtmpfile { rm -f "$UDD"; }
+trap rmtmpfile exit
case $1 in
orphaned_without_o_bug)
orphaned_without_o_bug