Skip to contentSkip to conversation

build-perf-test-wrapper.sh: fix issues with non-existing path arguments

PATCH New Markus Lehtonen 1 participant 1 message Jan 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/contrib/build-perf-test-wrapper.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/contrib/build-perf-test-wrapper.sh +3 -3
index e03ea97..affd242 100755
@@ -44,14 +44,14 @@ 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 "$OPTARG"`
+        C)  results_repo=`realpath -s "$OPTARG"`
             commit_results=("--commit-results" "$results_repo")
             ;;
-        w)  base_dir=`realpath "$OPTARG"`
+        w)  base_dir=`realpath -s "$OPTARG"`
             ;;
         *)  usage
             exit 1
Signature · 1 line
2.10.2