From: Sergey Matveev Date: Sun, 7 Feb 2016 13:30:30 +0000 (+0300) Subject: sed can be safely invoked without -e for simple scripts X-Git-Tag: 5.6^2~2 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=d5a0ad3e9e5d731044ddd67161165e3ccde2f8f9 sed can be safely invoked without -e for simple scripts Signed-off-by: Sergey Matveev --- diff --git a/utils/addroute.sh b/utils/addroute.sh index 781505c..a8d85cd 100755 --- a/utils/addroute.sh +++ b/utils/addroute.sh @@ -23,7 +23,7 @@ tear_down_dev() { do_connect() { - local OLDGW=$(ip route show 0/0 | sed -e 's/^default//') + local OLDGW=$(ip route show 0/0 | sed 's/^default//') ip link set dev $TAPDEV up ip addr add $INTERNAL_IP4_ADDRESS dev $TAPDEV ip route add $VPNGATEWAY $OLDGW