Skip to content

Commit

Permalink
Search the host for Toolbox proxied binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Oct 23, 2023
1 parent 538b5a6 commit d12f509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/podman
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ test -f /run/.toolboxenv && CMDPREFIX='flatpak-spawn --host'

# Can't use `command` because this is a script, not a function/alias.
# This is evil because it breaks with paths including newlines, but those paths are evil anyway.
exec $CMDPREFIX $(which -a $BINARY | grep -Fve '~/bin/' -e ~/bin/ | head -1) "$@"
exec $CMDPREFIX $($CMDPREFIX which -a $BINARY | grep -Fve '~/bin/' -e ~/bin/ | head -1) "$@"

0 comments on commit d12f509

Please sign in to comment.