Suppress superfluous error message when pushing to a cell the first time.
If remote bits aren't found, it used to print: cksum: /tmp/onos-1.1.0.jono.tar.gz: No such file or directory which may give the impression the install failed. Fixes ONOS-704. Change-Id: Ic03f3e546abad1e4dcfb69f61b7766be63c016ef
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -10,7 +10,7 @@ node=${1:-$OCI} | ... | @@ -10,7 +10,7 @@ node=${1:-$OCI} |
10 | remote=$ONOS_USER@$node | 10 | remote=$ONOS_USER@$node |
11 | 11 | ||
12 | locHash=$(cksum $ONOS_TAR | cut -d' ' -f1,2) | 12 | locHash=$(cksum $ONOS_TAR | cut -d' ' -f1,2) |
13 | -remHash=$(ssh $remote cksum $ONOS_TAR | cut -d' ' -f1,2) | 13 | +remHash=$(ssh $remote cksum $ONOS_TAR 2>/dev/null | cut -d' ' -f1,2) |
14 | 14 | ||
15 | if [ "$locHash" = "$remHash" ]; then | 15 | if [ "$locHash" = "$remHash" ]; then |
16 | echo "ONOS bits $ONOS_TAR already up-to-date on $node..." | 16 | echo "ONOS bits $ONOS_TAR already up-to-date on $node..." | ... | ... |
-
Please register or login to post a comment