Add missing '$' in JJB scripts
[releng/builder.git] / jjb / opflex / scripts / openvswitch-build.sh
index 2d379c7515dbb045cbb0bef258384da338dbcaa6..61ae9b4b8abb8fd381b203adc80c29cf067666ac 100644 (file)
@@ -23,9 +23,9 @@ mkdir -p "$DESTDIR"
 ./boot.sh
 ./configure --prefix="$ROOT" --enable-shared
 make -j4
-DESTDIR=`pwd`/$DESTDIR make install
+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
@@ -36,9 +36,9 @@ elif [[ $OPENVSWITCH_VERSION =~ noiro ]]; then
 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"
-mv *.tar.gz "$_"
+mv -- *.tar.gz "$_"
 popd