From 5c0c51d23d33dd9eb05493bb59cbc8b9c7cc4a08 Mon Sep 17 00:00:00 2001 From: snail007 Date: Tue, 12 Sep 2017 11:16:38 +0800 Subject: [PATCH] Update install_auto.sh --- install_auto.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install_auto.sh b/install_auto.sh index e6bba53..1d96ecf 100755 --- a/install_auto.sh +++ b/install_auto.sh @@ -1,7 +1,8 @@ #!/bin/bash - -rm -rf /tmp/proxy -mkdir /tmp/proxy +set -e +if [ -e /tmp/proxy ]; then + rm -rf /tmp/proxy +fi cd /tmp/proxy wget https://github.com/reddec/monexec/releases/download/v0.1.1/monexec_0.1.1_linux_amd64.tar.gz wget https://github.com/snail007/goproxy/releases/download/v2.0/proxy-linux-amd64.tar.gz