diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2015-04-21 11:46:22 -0600 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-04-22 11:04:07 +0300 |
commit | 3c91afd54aa45daa5aa7db06a267ce72d8554dc3 (patch) | |
tree | 861681ee6ea9e4208235a3a8a5698baae067edc5 /post-build-manage-buildhistory.sh | |
parent | 072596b2024953c11ea8b4f52672396413e2a486 (diff) |
Use base_dir variable instead of hardcoded path for base directory.
Use basename instead of cut for external toolchain path parsing
to be more flexible.
Change-Id: Ia427b88cc5e97cc147591bfcb03df666990f7f6d
Signed-off-by: Robert Savoye <rob.savoye@linaro.org>
Diffstat (limited to 'post-build-manage-buildhistory.sh')
-rwxr-xr-x | post-build-manage-buildhistory.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/post-build-manage-buildhistory.sh b/post-build-manage-buildhistory.sh index 5c4086f..afefef3 100755 --- a/post-build-manage-buildhistory.sh +++ b/post-build-manage-buildhistory.sh @@ -35,6 +35,7 @@ OPTIONS: EOF } +base_dir="/mnt/ci_build" while getopts “hb:r:v” OPTION do @@ -67,7 +68,7 @@ fi buildhistory_dir=`find build -maxdepth 2 -type d -name buildhistory` if [ ! -d $buildhistory_dir ]; then - buildhistory_dir=`find /mnt/ci_build/workspace/tmp -type d -name buildhistory` + buildhistory_dir=`find ${base_dir}/workspace/tmp -type d -name buildhistory` fi if [ ! -z "$buildhistory_dir" ] && [ -d $buildhistory_dir ]; then |