use tmpDir when creating images with jigdo-lite
authorSteve McIntyre <steve@einval.com>
Thu, 24 Oct 2019 10:58:27 +0000 (11:58 +0100)
committerSteve McIntyre <steve@einval.com>
Thu, 24 Oct 2019 10:58:27 +0000 (11:58 +0100)
scripts/jigdo-lite

index 7c559b8..e09fb24 100755 (executable)
@@ -514,7 +514,7 @@ imageDownload() {
   list="$image.list"
 
   # Create name of temporary dir, by stripping extension from $image
-  imageTmp="`echo $image | sed 's%\.\(tmp|iso|raw\)%%'`"
+  imageTmp="$tmpDir/`echo $image | sed 's%\.\(tmp|iso|raw\)%%'`.tmpdir"
   if test -f "$imageTmp" -o "x$imageTmp" = "x$image"; then
     imageTmp="$imageTmp.tmpdir"
   fi