osstest: fix rm to use '-f' in ts-freebsd-host-install
PATCH v2 1/1 osstest: fix rm to use '-f' in ts-freebsd-host-install
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é <[email protected]>
---
Cc: Ian Jackson <[email protected]>
---
Changes since v1:
- Use -f instead of removing the 'rm', osstest might want to wipe the file in order to not preserve the permissions.
--- ts-freebsd-host-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ts-freebsd-host-install +1 -1
@@ -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
Signature · 7 lines
2.13.6 (Apple Git-96) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Roger Pau Monne writes ("[PATCH v2] osstest: fix rm to use '-f' in ts-freebsd-host-install"):
Quoted 2 lines
It's perfectly valid for the .tmp file to not exists, and the script shouldn't fail in that case.
Acked-by Ian Jackson <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel