From: Markus Lehtonen Date: Fri, 27 Jan 2017 13:24:25 +0000 (+0200) Subject: build-perf-test-wrapper.sh: fix issues with non-existing path arguments X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~22543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b80aba08ba56c7e8f847966b3593f6cedd1b1ee5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git build-perf-test-wrapper.sh: fix issues with non-existing path arguments Without the '-s' option realpath will error out if the given path does not exist. Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh index 7788bb1d1a2..f192fcfa925 100755 --- a/scripts/contrib/build-perf-test-wrapper.sh +++ b/scripts/contrib/build-perf-test-wrapper.sh @@ -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