diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-05-24 12:11:26 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-05-24 12:11:26 +0200 |
commit | 723119ec457e9514bd633e2994cb65fde17a40be (patch) | |
tree | f73e1ef4faad2f2bd09adb0cd31957e64c604c42 | |
parent | 7a40707ca754175d76863512ec67b383bcc9c54d (diff) |
Add the opportunity to the user to tell the repo path, so the script
can be called from anywhere.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rwxr-xr-x | pmwg-ci-report | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pmwg-ci-report b/pmwg-ci-report index c4b112a..99ec5b2 100755 --- a/pmwg-ci-report +++ b/pmwg-ci-report @@ -5,6 +5,14 @@ ABBREV=12 GIT_DESCR=$(git describe --abbrev=$ABBREV) KERNELCI_URL=https://storage.kernelci.org/pmwg/$GIT_DESCR/build-logs-summary.txt BLAME_SCRIPT=pmwg-ci-blame +# Give the opportunity the caller of the script to specify the directory +# where the repository is located, otherwise default to the current +# directory +REPOPATH=${1:-$PWD} + +# Use pushd here so when the script exits, the CWD will automatically +# be the initial one before calling this script. +pushd $REPOPATH pmwg-ci_report() { |