make -j4
DESTDIR=$(pwd)/$DESTDIR make install
-if [[ $OPENVSWITCH_VERSION =~ 2.6.0 ]]; then
+if [[ $OPENVSWITCH_VERSION =~ 2.12.0 ]]; then
mkdir -p $DESTDIR/$ROOT/include/openvswitch/openvswitch
mv $DESTDIR/$ROOT/include/openvswitch/*.h $DESTDIR/$ROOT/include/openvswitch/openvswitch
mv $DESTDIR/$ROOT/include/openflow $DESTDIR/$ROOT/include/openvswitch
fi
pushd $DESTDIR
-tar -cvzf -- "openvswitch-$OPENVSWITCH_VERSION.tar.gz" *
+tar cvzf "openvswitch-$OPENVSWITCH_VERSION.tar.gz" -- *
# Move tarball to dir of files that will be uploaded to Nexus
UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
mkdir -p "$UPLOAD_FILES_PATH"