slight indentation cleanup

This commit is contained in:
My Spaghetti
2020-08-06 11:23:37 +03:00
parent a83e5de9c1
commit 1e4bf5d150
+6 -6
View File
@@ -108,8 +108,8 @@ if [[ -n "${BASH_VERSION}" && -n "${ZSH_VERSION}" ]]; then
exit exit
elif [[ -n "${BASH_VERSION}" ]]; then elif [[ -n "${BASH_VERSION}" ]]; then
if [[ ! ( "${BASH_VERSION:0:1}" -ge 5 if [[ ! ( "${BASH_VERSION:0:1}" -ge 5
|| "${BASH_VERSION:0:3}" =~ 4\.[3-9] || "${BASH_VERSION:0:3}" =~ 4\.[3-9]
|| "${BASH_VERSION:0:4}" =~ 4\.[12][0-9] ) ]]; then || "${BASH_VERSION:0:4}" =~ 4\.[12][0-9] ) ]]; then
echo "Please execute this script with Bash 4.3 or higher, or zsh 5.5 or higher." echo "Please execute this script with Bash 4.3 or higher, or zsh 5.5 or higher."
if [[ -n "$(sw_vers 2>/dev/null)" ]]; then if [[ -n "$(sw_vers 2>/dev/null)" ]]; then
echo "macOS detected. Make sure the script is not executed with" echo "macOS detected. Make sure the script is not executed with"
@@ -119,10 +119,10 @@ elif [[ -n "${BASH_VERSION}" ]]; then
fi fi
elif [[ -n "${ZSH_VERSION}" ]]; then elif [[ -n "${ZSH_VERSION}" ]]; then
if [[ ( "${ZSH_VERSION:0:1}" -ge 6 if [[ ( "${ZSH_VERSION:0:1}" -ge 6
|| "${ZSH_VERSION:0:3}" =~ 5\.[5-9] || "${ZSH_VERSION:0:3}" =~ 5\.[5-9]
|| "${ZSH_VERSION:0:4}" =~ 5\.[1-4][0-9] ) ]]; then || "${ZSH_VERSION:0:4}" =~ 5\.[1-4][0-9] ) ]]; then
# make zsh parse the script (almost) like bash # make zsh parse the script (almost) like bash
setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob bsd_echo setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob bsd_echo
else else
echo "Please execute this script with zsh version 5.5 or higher." echo "Please execute this script with zsh version 5.5 or higher."
exit exit