X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mail-route;h=52f4651becd9c8afc758c2fd791157f9224e9784;hp=1dea430b1bb22288d93b95b570bee19102e241a5;hb=343a048be4b32d18540c6531048d2b9a006774ae;hpb=50e3ebaf4941651899a3b52b5245052c3f4ed725 diff --git a/mail-route b/mail-route index 1dea430..52f4651 100755 --- a/mail-route +++ b/mail-route @@ -13,7 +13,7 @@ set -x # See the License for the specific language governing permissions and # limitations under the License. -[[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@" +[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" source /a/bin/errhandle/err