Charles Chan
Committed by Charles Chan

Fix file not found error when calculating checksum of buck plugin

Change-Id: If5dcfd3a5048cc6381400da22325e48e5e65aad4
...@@ -45,7 +45,7 @@ if [ ! -f "$ONOS_PLUGIN" -o -n "$ONOS_BUILD_PLUGIN" ]; then ...@@ -45,7 +45,7 @@ if [ ! -f "$ONOS_PLUGIN" -o -n "$ONOS_BUILD_PLUGIN" ]; then
45 # Build it first 45 # Build it first
46 pluginJar=$(NO_BUCKD=1 $BUCK build //tools/build/buck-plugin:onosjar --show-output 2>/dev/null | grep onosjar.jar | cut -d\ -f2) 46 pluginJar=$(NO_BUCKD=1 $BUCK build //tools/build/buck-plugin:onosjar --show-output 2>/dev/null | grep onosjar.jar | cut -d\ -f2)
47 47
48 - CHK_NEW=$(cksum $pluginJar | cut -d' ' -f1-2) 48 + CHK_NEW=$(cksum $ONOS_ROOT/$pluginJar | cut -d' ' -f1-2)
49 CHK_OLD=$(cksum $ONOS_PLUGIN 2>/dev/null | cut -d' ' -f1-2) 49 CHK_OLD=$(cksum $ONOS_PLUGIN 2>/dev/null | cut -d' ' -f1-2)
50 if [ "$CHK_NEW" != "$CHK_OLD" ]; then 50 if [ "$CHK_NEW" != "$CHK_OLD" ]; then
51 # diff plugins... if different, copy and restart buckd 51 # diff plugins... if different, copy and restart buckd
......