tools: install.fish: Modify method to get base directory.

Current method assumes that you are in the esp-idf directory when executing install. This method will get the correct path regardless of where you execute from.

Merges https://github.com/espressif/esp-idf/pull/6718
pull/6882/head
blakjak44 2021-03-14 18:22:41 -07:00 zatwierdzone przez Ivan Grokhotkov
rodzic cb179fe105
commit f5f0648608
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
#!/usr/bin/env fish
set basedir $PWD
set basedir (realpath (dirname (status -f)))
set -x IDF_PATH $basedir