HIGUCHI Yuta

fixing obf when $ONOS_TAR doesnt exist

Change-Id: I5612024438de251fa689cb3333d7efe76423e3f0
...@@ -36,7 +36,7 @@ export ONOS_ZIP=$ONOS_STAGE.zip ...@@ -36,7 +36,7 @@ export ONOS_ZIP=$ONOS_STAGE.zip
36 # If the BUCK-built bits are newer than the Maven-built bits, use the former. 36 # If the BUCK-built bits are newer than the Maven-built bits, use the former.
37 BUCK_TAR=$ONOS_ROOT/buck-out/gen/tools/package/onos-package/onos.tar.gz 37 BUCK_TAR=$ONOS_ROOT/buck-out/gen/tools/package/onos-package/onos.tar.gz
38 if [ -f $BUCK_TAR -a $BUCK_TAR -nt $ONOS_TAR ]; then 38 if [ -f $BUCK_TAR -a $BUCK_TAR -nt $ONOS_TAR ]; then
39 - rm $ONOS_TAR >/dev/null; ln -s $BUCK_TAR $ONOS_TAR 39 + rm -f $ONOS_TAR >/dev/null; ln -s $BUCK_TAR $ONOS_TAR
40 fi 40 fi
41 41
42 # ONOS test bits (onos-test.tar.gz) staging environment 42 # ONOS test bits (onos-test.tar.gz) staging environment
......