commit | d412ef73e46159560d7afe8948bfc93936da01a6 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Fri Oct 27 18:15:18 2017 -0700 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Mon Oct 30 17:19:23 2017 +0000 |
tree | 7b6203872cc6de92b91936a32e2700e00f19047e | |
parent | ca94bcf5eacbe84242c7759e13b72cd09e289bcc [diff] [blame] |
use well defined shell expression test https://github.com/koalaman/shellcheck/wiki/SC2166 Change-Id: Ifa6f13ed17a945ec6e906c002860ca5e77488f82
diff --git a/tools/build/envDefaults b/tools/build/envDefaults index 19f20f7..9f60132 100644 --- a/tools/build/envDefaults +++ b/tools/build/envDefaults
@@ -35,7 +35,7 @@ # If the BUCK-built bits are newer than the Maven-built bits, use the former. BUCK_TAR=$ONOS_ROOT/buck-out/gen/tools/package/onos-package/onos.tar.gz -if [ -f $BUCK_TAR -a $BUCK_TAR -nt $ONOS_TAR ]; then +if [ -f $BUCK_TAR ] && [ $BUCK_TAR -nt $ONOS_TAR ]; then rm -f $ONOS_TAR >/dev/null; ln -s $BUCK_TAR $ONOS_TAR fi