feat: Don't add nonexistent directories to PATH
This commit is contained in:
parent
a30a7fa1b3
commit
c6e9a101ae
1 changed files with 3 additions and 0 deletions
|
@ -50,5 +50,8 @@ for ((i = ${#nix_path_array[@]} - 1; i >= 0; i--)); do
|
|||
if contains "$nix_path_entry" "$PATH"; then
|
||||
continue
|
||||
fi
|
||||
if ! [ -d "$nix_path_entry" ]; then
|
||||
continue
|
||||
fi
|
||||
echo "$nix_path_entry" >>"${GITHUB_PATH:-/dev/stderr}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue