From 884b63029d595e31d0e32c64db4f8394a76526b1 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Tue, 29 Dec 2015 16:40:02 +0800 Subject: add Shebang for bash scripts * Our bash scripts use some bash sepcific syntax, so them can not be started by other shell like zsh. Add shebang for them, so zsh can simplely execute './deploy.sh' Change-Id: Ic6e6afaa83c6de131e6ac4eda1601d11c5b22656 Signed-off-by: carey.xu --- deploy/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deploy/network.sh') diff --git a/deploy/network.sh b/deploy/network.sh index c6d0df5d..9f1a7b90 100755 --- a/deploy/network.sh +++ b/deploy/network.sh @@ -1,4 +1,4 @@ - +#!/bin/bash function clear_forward_rejct_rules() { while sudo iptables -nL FORWARD --line-number|grep -E 'REJECT +all +-- +0.0.0.0/0 +0.0.0.0/0 +reject-with icmp-port-unreachable'|head -1|awk '{print $1}'|xargs sudo iptables -D FORWARD; do :; done -- cgit 1.2.3-korg