Fix error concerning '

' variable.
This commit is contained in:
Christoph 2022-07-23 03:28:17 +02:00
parent d7018d7aec
commit 4e0debbc1e
12 changed files with 135 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -239,6 +246,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -239,6 +246,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -239,6 +246,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -219,6 +221,11 @@ fi
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
@ -277,6 +284,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -190,6 +192,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -247,6 +254,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -190,6 +192,11 @@ fi
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -246,6 +253,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -190,6 +192,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
# ============= # =============
@ -247,6 +254,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -248,6 +250,12 @@ if [[ -z "$WEBSITE" ]] ; then
#fatal "No website ios given on commandline - Missing Parameter '-s <website>'" #fatal "No website ios given on commandline - Missing Parameter '-s <website>'"
fi fi
# - Reset IFS
# -
IFS=$CUR_IFS
WEB_BASE_DIR="/var/www/${WEBSITE}" WEB_BASE_DIR="/var/www/${WEBSITE}"
if [[ ! -d ${WEB_BASE_DIR} ]] ; then if [[ ! -d ${WEB_BASE_DIR} ]] ; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -246,6 +248,11 @@ if [[ -z "$WEBSITE" ]] ; then
#fatal "No website ios given on commandline - Missing Parameter '-s <website>'" #fatal "No website ios given on commandline - Missing Parameter '-s <website>'"
fi fi
# - Reset IFS
# -
IFS=$CUR_IFS
WEB_BASE_DIR="/var/www/${WEBSITE}" WEB_BASE_DIR="/var/www/${WEBSITE}"
if [[ ! -d ${WEB_BASE_DIR} ]] ; then if [[ ! -d ${WEB_BASE_DIR} ]] ; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS=$IFS
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -219,6 +221,11 @@ fi
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
@ -277,6 +284,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS="$IFS"
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -186,6 +188,11 @@ fi
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
@ -243,6 +250,11 @@ read _IN
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echononl " Include Configuration file.." echononl " Include Configuration file.."
if [[ ! -f $conf_file ]]; then if [[ ! -f $conf_file ]]; then

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CUR_IFS="$IFS"
script_name="$(basename $(realpath $0))" script_name="$(basename $(realpath $0))"
script_dir="$(dirname $(realpath $0))" script_dir="$(dirname $(realpath $0))"
@ -211,6 +213,10 @@ fi
IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}"))
# - Reset IFS
# -
IFS=$CUR_IFS
# ============= # =============
# --- Some # --- Some
@ -267,6 +273,12 @@ read _IN
fi fi
done done
# - Reset IFS
# -
IFS=$CUR_IFS
echo "" echo ""
echo -e "\033[32m--\033[m" echo -e "\033[32m--\033[m"
echo "" echo ""