summaryrefslogtreecommitdiffstats
path: root/bootstrap-cpp.sh
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-08-17 13:00:33 +0200
committerGeir Storli <geirst@yahoo-inc.com>2017-08-17 13:00:33 +0200
commit7e356d3900feb7342248be379a62f6450e1fd84a (patch)
tree429312a6aadc29bffbaa6442c2ab0443ff492c8b /bootstrap-cpp.sh
parenta0d6cef6e791fc7d2b0bc4eeaccc48aebb913486 (diff)
Fix script to support relative input paths.
Diffstat (limited to 'bootstrap-cpp.sh')
-rwxr-xr-xbootstrap-cpp.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap-cpp.sh b/bootstrap-cpp.sh
index 9edac9c5602..ade0c5a193b 100755
--- a/bootstrap-cpp.sh
+++ b/bootstrap-cpp.sh
@@ -6,8 +6,8 @@ usage() {
}
if [ $# -eq 2 ]; then
- SOURCE_DIR=$1
- BUILD_DIR=$2
+ SOURCE_DIR=$(realpath $1)
+ BUILD_DIR=$(realpath $2)
elif [[ $# -eq 1 && ( "$1" = "-h" || "$1" = "--help" )]]; then
usage
exit 0