]> code.ossystems Code Review - openembedded-core.git/commitdiff
build-perf-test-wrapper.sh: fix issues with non-existing path arguments
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 27 Jan 2017 13:24:25 +0000 (15:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:27 +0000 (20:06 -0800)
Without the '-s' option realpath will error out if the given path does
not exist.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/build-perf-test-wrapper.sh

index 7788bb1d1a2125781f6ffc7492389ce1cd5d625e..f192fcfa925ce275aaba819940813314aa5b256f 100755 (executable)
@@ -44,13 +44,13 @@ while getopts "ha:c:C:w:" opt; do
         h)  usage
             exit 0
             ;;
-        a)  archive_dir=`realpath "$OPTARG"`
+        a)  archive_dir=`realpath -s "$OPTARG"`
             ;;
         c)  commitish=$OPTARG
             ;;
         C)  results_repo=`realpath -s "$OPTARG"`
             ;;
-        w)  base_dir=`realpath "$OPTARG"`
+        w)  base_dir=`realpath -s "$OPTARG"`
             ;;
         *)  usage
             exit 1