Skip to content

Commit

Permalink
enter: ensure PATH is built correctly and check for exact subpaths (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 authored Dec 29, 2021
1 parent c82504b commit 649f16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-enter
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ generate_command() {
container_paths="${PATH}"
# add to the PATH only after the host's paths, and only if not already present.
for standard_path in ${standard_paths}; do
if [ -n "${container_paths##*${standard_path}*}" ]; then
if [ -n "${container_paths##*:${standard_path}*}" ]; then
container_paths="${container_paths}:${standard_path}"
fi
done
Expand Down

0 comments on commit 649f16a

Please sign in to comment.