From 109d0b711f20e61c0b23de0c8d871b32a8a4b716 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 17 Sep 2013 18:14:03 +0100 Subject: [PATCH] goaljobs: Remove temporary files properly. --- goaljobs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goaljobs b/goaljobs index defb248..b7f929a 100755 --- a/goaljobs +++ b/goaljobs @@ -140,4 +140,5 @@ echo \ ocamlfind $best "${passthru[@]}" "${pkg[@]}" "$@" $main -o "$output" ocamlfind $best "${passthru[@]}" "${pkg[@]}" "$@" $main -o "$output" -rm -f $main +mainbase="$(echo $main | sed s,\.ml$,,)" +rm -f "$mainbase"* -- 1.8.3.1