[PATCH] bootstrap.sh: improve path handling
Export this patch
- fix pwd with space
- dirname with a subshell less
- non relative PATH
---
bootstrap.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bootstrap.sh b/bootstrap.sh
index cddadd8..d7ee161 100755
--- a/bootstrap.sh
@@ -1,9 +1,9 @@
#!/bin/sh -e
-cd $(dirname $0)
+cd "${0%/*}"
hare build -o bin/haredo src
-export PATH="bin:$PATH"
+export PATH="$PWD/bin:$PATH"
haredo doc/haredo.1
if [ "$1" = "install" ]
then
--
2.42.1
Thanks
~Autumn