Skip to content

Commit

Permalink
feat: adds command dispatching for linked execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin authored Jan 14, 2024
1 parent 8dbf891 commit 5c3b419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes.container/usr/bin/host-shell
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ sudo_command=""
XDG_RUNTIME_DIR="/run/host/${XDG_RUNTIME_DIR}"
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/host/$(echo "${DBUS_SESSION_BUS_ADDRESS}" | cut -d '=' -f2-)"

if [ "$(basename "${0}")" != "host-shell" ]; then
host_command="$(basename "${0}")"
fi

host-spawn "${host_command}" "${@:2}"
exit $?

0 comments on commit 5c3b419

Please sign in to comment.