Skip to content

Commit

Permalink
Update export.fish: using readlink to extract absolute path for IDF_PATH
Browse files Browse the repository at this point in the history
Co-authored-by: mfialaf <56676192+mfialaf@users.noreply.github.com>
  • Loading branch information
imcaizheng and mfialaf committed Aug 30, 2022
1 parent 8924b01 commit bf78025
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions export.fish
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ end

function __main
if not set -q IDF_PATH
set -gx IDF_PATH (dirname (status -f))
if test "$IDF_PATH" = "."
set -gx IDF_PATH $PWD
end
set -gx IDF_PATH (dirname (readlink -m (status -f)))
echo "Setting IDF_PATH to '$IDF_PATH'"
end

Expand Down

0 comments on commit bf78025

Please sign in to comment.