]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
osstest: fix rm to use '-f' in ts-freebsd-host-install
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 3 Nov 2017 15:18:05 +0000 (15:18 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 6 Nov 2017 16:38:07 +0000 (16:38 +0000)
It's perfectly valid for the .tmp file to not exists, and the script
shouldn't fail in that case.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-freebsd-host-install

index bfc693a18391c0ad209b9b44c3264500d0f3ed0f..cac8be9d228c2e4af278b8142f546087080da345 100755 (executable)
@@ -96,7 +96,7 @@ targetpath=$4
 cd $basedir
 mkdir -p `dirname $sharedpath`
 if [ ! -f $sharedpath ]; then
-    rm $sharedpath.tmp
+    rm -f $sharedpath.tmp
     dd if=$imagepath of=$sharedpath.tmp
     mv $sharedpath.tmp $sharedpath
 fi