mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-28 21:16:29 +00:00
env.sh: use native Windows paths on Mingw
This commit is contained in:
parent
6188e3f6b8
commit
de5a3899f7
6
env.sh
6
env.sh
@ -1,7 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
PWD_CMD="pwd"
|
||||||
|
# get native Windows paths on Mingw
|
||||||
|
uname | grep -qi mingw && PWD_CMD="pwd -W"
|
||||||
|
|
||||||
rel_path="$(dirname $0)"
|
rel_path="$(dirname $0)"
|
||||||
abs_path="$(cd $rel_path; pwd)"
|
abs_path="$(cd $rel_path; ${PWD_CMD})"
|
||||||
|
|
||||||
# make it an absolute path, so we can call this script from other dirs
|
# make it an absolute path, so we can call this script from other dirs
|
||||||
export PATH="${abs_path}/vendor/Nim/bin:$PATH"
|
export PATH="${abs_path}/vendor/Nim/bin:$PATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user