forked from Job79/devcontainer
refactor: simplify host script
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/bus
|
export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus"
|
||||||
host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" \
|
|
||||||
$([ "$(basename "$0")" != "host" ] && echo "$(basename "$0")") "$@"
|
cmd="${0##*/}"
|
||||||
|
[[ "$cmd" == "host" ]] && unset cmd
|
||||||
|
exec host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" ${cmd:+"$cmd"} "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user