X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/cb4c485306a984940caac998a486eae917cf6c77..6a5170a8b5b36406e249eee93868f1b0e2acfd8b:/bin/run-with-shell-env diff --git a/bin/run-with-shell-env b/bin/run-with-shell-env new file mode 100644 index 0000000..ba0afcf --- /dev/null +++ b/bin/run-with-shell-env @@ -0,0 +1,13 @@ +#! /bin/bash -x +exec >/tmp/mdw/hacky.log 2>&1 +case ${__mdw_profile+t} in + t) ;; + *) + __mdw_force_secure_session=yes + export SHELL=/bin/bash USER=$(/bin/id -un) + set +x + . $HOME/.bash_profile + set -x + ;; +esac +exec "$@"