~autumnull/haredo-devel

bootstrap.sh: improve path handling v1 PROPOSED

Sertonix: 1
 bootstrap.sh: improve path handling

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~autumnull/haredo-devel/patches/46957/mbox | git am -3
Learn more about email & git

[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