removed shift

This commit is contained in:
Matthew Saunders Brown 2021-09-17 11:48:51 -07:00
parent 18b099e05a
commit ce2a3470f4
15 changed files with 0 additions and 17 deletions

View File

@ -28,7 +28,6 @@ if [ -n "$1" ]; then
# virtualhost # virtualhost
if vhost::validate_domain $1; then if vhost::validate_domain $1; then
virtualhost="${1,,}" virtualhost="${1,,}"
shift
else else
echo "ERROR: $1 is not a valid domain name." echo "ERROR: $1 is not a valid domain name."
exit 1 exit 1
@ -39,7 +38,6 @@ if [ -n "$1" ]; then
help help
else else
username="${2,,}" username="${2,,}"
shift
fi fi
else else
echo "username not set" echo "username not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
help help

View File

@ -27,7 +27,6 @@ if [ -n "$1" ]; then
help help
elif vhost::validate_domain $1; then elif vhost::validate_domain $1; then
virtualhost="${1,,}" virtualhost="${1,,}"
shift
else else
echo "ERROR: Invalid virtualhost: $1" echo "ERROR: Invalid virtualhost: $1"
exit 1 exit 1

View File

@ -27,7 +27,6 @@ if [ -n "$1" ]; then
exit 1 exit 1
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
help help

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
echo "virtualhost not set" echo "virtualhost not set"

View File

@ -66,7 +66,6 @@ if [ -n "$1" ]; then
else else
# check for and set macro # check for and set macro
macro_name=$1 macro_name=$1
shift
if [[ " ${macro_array[@]} " =~ " ${macro_name} " ]]; then if [[ " ${macro_array[@]} " =~ " ${macro_name} " ]]; then
macro_vhost_line="$macro_vhost_line $macro_name" macro_vhost_line="$macro_vhost_line $macro_name"
else else
@ -76,7 +75,6 @@ if [ -n "$1" ]; then
# check for and set vhost # check for and set vhost
if [ -n "$2" ]; then if [ -n "$2" ]; then
vhost=$2 vhost=$2
shift
macro_vhost_line="$macro_vhost_line $vhost" macro_vhost_line="$macro_vhost_line $vhost"
vhost_conf="$vhost.conf" vhost_conf="$vhost.conf"
else else

View File

@ -34,7 +34,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
echo "virtualhost not set" echo "virtualhost not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
echo "virtualhost not set" echo "virtualhost not set"

View File

@ -26,7 +26,6 @@ if [ -n "$1" ]; then
help help
else else
username="${1,,}" username="${1,,}"
shift
fi fi
else else
echo "username not set" echo "username not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
username="${1,,}" username="${1,,}"
shift
fi fi
else else
echo "username not set" echo "username not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
username="${1,,}" username="${1,,}"
shift
fi fi
else else
echo "username not set" echo "username not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
username="${1,,}" username="${1,,}"
shift
fi fi
else else
echo "username not set" echo "username not set"

View File

@ -24,7 +24,6 @@ if [ -n "$1" ]; then
help help
else else
cpfile=$1 cpfile=$1
shift
fi fi
else else
echo "file to copy in to jails not set" echo "file to copy in to jails not set"

View File

@ -27,7 +27,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
echo "virtualhost not set" echo "virtualhost not set"

View File

@ -28,7 +28,6 @@ if [ -n "$1" ]; then
help help
else else
virtualhost="${1,,}" virtualhost="${1,,}"
shift
fi fi
else else
echo "virtualhost not set" echo "virtualhost not set"