shellcheck, better automated upgrades
[distro-setup] / mail-route
index 1dea430b1bb22288d93b95b570bee19102e241a5..52f4651becd9c8afc758c2fd791157f9224e9784 100755 (executable)
@@ -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