[Git][ghc/ghc][master] rel-eng: Fix mktemp usage in recompress-all

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Apr 17 00:14:27 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
914eb49a by Ben Gamari at 2024-04-16T20:11:27-04:00
rel-eng: Fix mktemp usage in recompress-all

We need a temporary directory, not a file.

- - - - -


1 changed file:

- .gitlab/rel_eng/recompress-all


Changes:

=====================================
.gitlab/rel_eng/recompress-all
=====================================
@@ -21,7 +21,7 @@ usage :
 
 %.zip : %.tar.xz
 	echo "[tarxz->zip] $< to $@..."
-	tmp="$$(mktemp tmp.XXX)" && \
+	tmp="$$(mktemp -d tmp.XXX)" && \
 		tar -C "$$tmp" -xf $< && \
 		cd "$$tmp" && \
 		zip -9 -r $@ * && \



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/914eb49a0637ef12c3f7db71c9da93c05389497b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/914eb49a0637ef12c3f7db71c9da93c05389497b
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240416/81c13639/attachment.html>


More information about the ghc-commits mailing list