[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4590/8267] build-perf-test-wrapper.sh: fix issues with non-existing path arguments



commit f4ba140c59793ddb5405fdf5da608c4959c68d96
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date:   Fri Jan 27 15:24:25 2017 +0200

    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.
    
    (From OE-Core rev: b80aba08ba56c7e8f847966b3593f6cedd1b1ee5)
    
    Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/contrib/build-perf-test-wrapper.sh |    4 ++--
 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 7788bb1..f192fcf 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]