Skip to content

Commit

Permalink
[INSTALL] Fix setupvars.sh corrupted installation directory (openvino…
Browse files Browse the repository at this point in the history
…toolkit#26166)

Both 'cd' and 'pwd -P' print the directory name
Installation directory should be printed only once
  • Loading branch information
EgorDuplensky authored Aug 22, 2024
1 parent c8839fa commit c85902d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setupvars/setupvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
abs_path () {
script_path=$(eval echo "$1")
directory=$(dirname "$script_path")
builtin cd "$directory" || exit
builtin cd "$directory" >/dev/null 2>&1 || exit
pwd -P
}

Expand Down

0 comments on commit c85902d

Please sign in to comment.