[hatari-devel] [PATCH] Fix removing of $convertdir in case of a failure

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

this is a tiny patch for a bug I have accidentally discovered.

--
From 38aec4c416b2046fce837aecfb028a9bf0dc22fe Mon Sep 17 00:00:00 2001
From: Miro Kropacek <miro.kropacek@xxxxxxxxx>
Date: Thu, 25 Apr 2019 18:17:50 +0200
Subject: [PATCH] Fix removing of $convertdir in case of a failure

---
 tools/atari-hd-image.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/atari-hd-image.sh b/tools/atari-hd-image.sh
index 4b6a6d13..4284e9ac 100755
--- a/tools/atari-hd-image.sh
+++ b/tools/atari-hd-image.sh
@@ -129,8 +129,8 @@ exit_cleanup ()
 		rm -f $tmppart
 	fi
 	if [ \! -z $convertdir ] && [ -d $convertdir ]; then
-		echo "rm -f $convertdir"
-		rm -f $convertdir
+		echo "rm -rf $convertdir"
+		rm -rf $convertdir
 	fi
 	echo "Done."
 }
-- 
2.20.1



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/