nginx_build_script: fix: exit when --type=* is invaild/sudo unlink

Signed-off-by: minoplhy <c@3qx.nl>
This commit is contained in:
minoplhy 2024-09-21 11:55:42 +07:00
parent 9be80cba1f
commit b391a659bb
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -34,6 +34,7 @@ while [ ${#} -gt 0 ]; do
;;
*)
echo "ERROR : Vaild values for --type are -> nginx, freenginx"
exit 1
;;
esac
;;
@ -131,7 +132,7 @@ case $SSL_LIB in
# Golang
GO_VERSION=1.22.1
unlink /usr/bin/go
sudo unlink /usr/bin/go
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin