[hatari-devel] [PATCH] Fix removing of $convertdir in case of a failure |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] [PATCH] Fix removing of $convertdir in case of a failure
- From: Miro Kropáček <miro.kropacek@xxxxxxxxx>
- Date: Thu, 25 Apr 2019 18:19:38 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yI3qE9wcQz47buGs0z773i8/JkNoH7gPKcryyGHo1BQ=; b=CUDkvbiQSHH8cFSSdpwxgCoe2dmVm3Ta1swLYzXZ/UKLjRld87rukVgEiLy2Coq5Bk VvK9MuRVrBctiavUbSmZ8qDfPTVJ4x/nxV6VsmoVRo2FOfYsMPt8DPHoiQa9iTSiY2SH M8vSJ3dLkF0V1K/C0vuGFc8fsAxGaKiugRkmZlyx222WyCAw6T87dI5j7VBr26G0SYAb ZjM7gPkWNlBUsMXDdXDE6vR1vjhr9jKRfwyPM57l4gfdDL5Wk+rVOX6aiBhuPIEhiVHB ZbR8aOx8ChYUr/0UwHrEoJB9DhXCg2JiSLLlWMAPVaxp349tX1dtIz4zv5t837XjZNDv S3Sw==
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