ubuntu-server-cloudimg-dpdk-modify.sh: fixes and cleanup 31/30131/1
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 9 Mar 2017 08:24:55 +0000 (00:24 -0800)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 9 Mar 2017 08:34:54 +0000 (00:34 -0800)
commitc33b1929bbc52f8e925b2aac399ca954a16050d9
treedc5c245586aa70db646111185382e850ee958eee
parent270d6092c809e8de039a08efd8c108f865cf860e
ubuntu-server-cloudimg-dpdk-modify.sh: fixes and cleanup

https://build.opnfv.org/ci/view/fuel/job/yardstick-fuel-virtual-daily-master/1233/console

saw this in an error log, not sure if it is a real error

+ [[ amd64 = \a\r\m\6\4 ]]
+ git clone https://github.com/kdlucas/byte-unixbench.git /opt/tempT
fatal: destination path '/opt/tempT' already exists and is not an empty directory.
+ error_trap
+ local rc=128
+ set +e
+ '[' -z '' ']'
+ exitcode=128

workaround by deletign /opt/tempT always before cloning

also improve ln with relative symlink and forcing filename target

Change-Id: I6715e6dba76b79706d396b616eae980e5ace773b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tools/ubuntu-server-cloudimg-dpdk-modify.sh