blob: f090da6000952c8c098a05dd702a4335f93978ed [file] [log] [blame]
#!/bin/bash
#-------------------------------------------------------------------------------
# Pushes ONOS distributable bits in onos.tar.gz to a remote machine.
#-------------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
remote=$ONOS_USER@${1:-$OCI}
scp $ONOS_TAR $remote:/tmp