]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Don't panic if destdir exists as a directory
authorAntti Kantee <pooka@iki.fi>
Mon, 12 Oct 2015 15:36:16 +0000 (15:36 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 12 Oct 2015 15:36:16 +0000 (15:36 +0000)
build-rr.sh

index 3e38cf571abb757fd42a722886318860d8baf05e..651d25f3429a0383c6822eb0a008a03f33016e82 100755 (executable)
@@ -440,7 +440,7 @@ doinstall ()
 
        # default used to be a symlink, so this is for "compat".
        # remove in a few months.
-       rm -f ${DESTDIR} > /dev/null 2>&1
+       rm -f ${DESTDIR} > /dev/null 2>&1 || true
 
        mkdir -p ${DESTDIR} || die cannot create ${DESTDIR}
        ( cd ${STAGING} ; tar -cf - .) | (cd ${DESTDIR} ; tar -xf -)