From 56c89d61eb0c3c0033e7b3a6d34cca2879719b8d Mon Sep 17 00:00:00 2001
From: Stefan Heimersheim <stefan.heimersheim@rwth-aachen.de>
Date: Tue, 8 Jan 2019 22:48:41 +0100
Subject: [PATCH] Added -f to rm because file might not exist

---
 assemble_image.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/assemble_image.sh b/assemble_image.sh
index 97100b9..19bd8b7 100755
--- a/assemble_image.sh
+++ b/assemble_image.sh
@@ -5,7 +5,7 @@ set -x
 
 image_size="3G"
 iso_file="ubuntu-18.04.1-desktop-amd64.iso"
-workspace="/workspace/"
+workspace="/home/stefan/tardis/workspace"
 
 # mtools, ddrescure, fdisk, grub, 7z
 rm -rf "$workspace/part_files"
@@ -25,7 +25,7 @@ rm -rf "$workspace/part_files"/grub
 
 cp "$iso_file" "$workspace/part_files/kubuntu.iso"
 
-rm "$workspace/part.img"
+rm -f "$workspace/part.img"
 truncate -s "$image_size" "$workspace/part.img"
 mkfs.vfat -n "LIPSTICK" "$workspace/part.img"
 MTOOLS_SKIP_CHECK=1 mcopy -i "$workspace/part.img" -b -s -v "$workspace/part_files"/* ::
-- 
GitLab