From 4e3f35b332108d0ca588bde07f77c12670f4df4a Mon Sep 17 00:00:00 2001 From: Bigard Florian Date: Thu, 18 Feb 2016 08:50:06 +0100 Subject: [PATCH] Fix remove which fails if it does not find files --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 98f2b24..c610968 100755 --- a/update.sh +++ b/update.sh @@ -40,7 +40,7 @@ cd "$www" bower --allow-root install chown -R "$user:$group" "$www" -rm "/etc/openvpn/scripts/"{connect.sh,disconnect.sh,login.sh,functions.sh} +rm -f "/etc/openvpn/scripts/"{connect.sh,disconnect.sh,login.sh,functions.sh} cp "$base_path/installation/scripts/"{connect.sh,disconnect.sh,login.sh,functions.sh} "/etc/openvpn/scripts" chmod +x "/etc/openvpn/scripts/"{connect.sh,disconnect.sh,login.sh,functions.sh}