Update script: Removed IF statement

Removed if statement from update script,
was making no sense to have it there.
This commit is contained in:
4s3ti 2020-01-08 20:02:34 +01:00
parent 0c79cc9e42
commit 047eccc19d

View file

@ -52,11 +52,9 @@ updatefromtest(){
cloneandupdate(){
##This is to be removed after merge.
##Alert for users trying to update from master.
if [ $VPN == "wireguard" ]; then
echo "ERROR: You have installed pivpn from test branch."
echo "Wireguard not yet available on master, please use -t flag"
exit 1
fi
## Remove Above and uncomment below when test is moved to master
# git clone "$pivpnrepo" "$pivpnlocalpath"
# cp "${pivpnlocalpath}"/scripts/*.sh "$pivpnscripts"