From 787637cbed9d87bf70045a6a5272abed0f5d1943 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 4 Nov 2022 15:32:34 +0100 Subject: [PATCH] suppression du fichier temporaire Signed-off-by: Daniel Tartavel --- mirror_mageia_hd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mirror_mageia_hd b/mirror_mageia_hd index 58fa147..371f4f3 100755 --- a/mirror_mageia_hd +++ b/mirror_mageia_hd @@ -56,9 +56,11 @@ if [ -n "$dossier" ] && [ -n "$boot" ];then tmp_dir=$(mktemp -d -t mirror_mageia_hd-XXXXXXXXXX) pushd $tmp_dir rpm2cpio x86_64/media/core/release/drakiso-bootloader-files-1.17-1.mga8.x86_64.rpm | cpio --extract --make-directories - rsync -aP $tmpdir/usr/share/drakiso/bootloader/images/bootx64.efi + rsync -aP ./usr/share/drakiso/bootloader/images/bootx64.efi rpm2cpio i586/media/core/release/drakiso-bootloader-files-1.17-1.mga8.i586.rpm | cpio --extract --make-directories - rsync -aP $tmpdir/usr/share/drakiso/bootloader/images/bootia32.efi + rsync -aP ./usr/share/drakiso/bootloader/images/bootia32.efi + popd + rm -Rf $tmp_dir done else echo "il manque un dossier (boot ou miroir) voir plus haut"