1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-12-22 06:48:55 +00:00

Fix shellcheck errors

This commit is contained in:
angristan 2019-11-11 15:34:03 +09:00
parent b42b445ace
commit 6c0a0f50c7

View File

@ -1141,7 +1141,8 @@ function removeUnbound () {
function removeOpenVPN () { function removeOpenVPN () {
echo "" echo ""
read -rp "Do you really want to remove OpenVPN? [y/n]: " -e -i "n" REMOVE # shellcheck disable=SC2034
read -rp "Do you really want to remove OpenVPN? [y/n]: " -e -i n REMOVE
if [[ "$REMOVE" = 'y' ]]; then if [[ "$REMOVE" = 'y' ]]; then
# Get OpenVPN port from the configuration # Get OpenVPN port from the configuration
PORT=$(grep '^port ' /etc/openvpn/server.conf | cut -d " " -f 2) PORT=$(grep '^port ' /etc/openvpn/server.conf | cut -d " " -f 2)