summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-01-27 15:24:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-15 20:06:27 -0800
commitb80aba08ba56c7e8f847966b3593f6cedd1b1ee5 (patch)
treeeb4ab28e4b1a55d46bcb08645948e0806eb6c893
parent4de387c0cfcb6b58760c6b6e150474abe82bfe4c (diff)
downloadopenembedded-core-b80aba08ba56c7e8f847966b3593f6cedd1b1ee5.tar.gz
openembedded-core-b80aba08ba56c7e8f847966b3593f6cedd1b1ee5.tar.bz2
openembedded-core-b80aba08ba56c7e8f847966b3593f6cedd1b1ee5.zip
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 <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-xscripts/contrib/build-perf-test-wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index 7788bb1d1a..f192fcfa92 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