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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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