kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/export_macos' into 'master'
tools: export.sh: fix ESP-IDF path detection on macos See merge request espressif/esp-idf!5644pull/3874/head
commit
82af11813f
|
@ -2,9 +2,10 @@
|
|||
|
||||
function realpath_int() {
|
||||
wdir="$PWD"; [ "$PWD" = "/" ] && wdir=""
|
||||
case "$0" in
|
||||
/*) scriptdir="${0}";;
|
||||
*) scriptdir="$wdir/${0#./}";;
|
||||
arg=$1
|
||||
case "$arg" in
|
||||
/*) scriptdir="${arg}";;
|
||||
*) scriptdir="$wdir/${arg#./}";;
|
||||
esac
|
||||
scriptdir="${scriptdir%/*}"
|
||||
echo "$scriptdir"
|
||||
|
|
Ładowanie…
Reference in New Issue