Commit 029b8a312f7ce506f3410d7e7ee3e29459f1358c

Thomas de Grivel 2023-02-23T00:05:16

bootstrap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/bin/rbpkg_bootstrap b/bin/rbpkg_bootstrap
index f8ae21a..ca5f01a 100755
--- a/bin/rbpkg_bootstrap
+++ b/bin/rbpkg_bootstrap
@@ -56,12 +56,12 @@ mkdir -p "${RBPKG_DIR}/etc"
     cat <<EOF
 # rbpkg
 
-: \${RBPKG_DIR:=${RBPKG_DIR}}
+: \${RBPKG_DIR:=$(cd "${RBPKG_DIR}" && pwd)}
 export RBPKG_DIR
 
 # runtime
 
-export PATH="\${RBPKG_DIR}/bin:$PATH"
+export PATH="\${RBPKG_DIR}/bin:\${PATH}"
 export LD_LIBRARY_PATH="\${RBPKG_DIR}/lib:${LD_LIBRARY_PATH}"
 
 # compile time