theme: Fixes for bash3

This commit is contained in:
Dylan Araps 2018-05-03 15:12:42 +10:00
parent d52ba624bf
commit 3e9c76a830
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ shopt -s nocasematch
reset="\e[0m" reset="\e[0m"
# Neofetch default config. # Neofetch default config.
readarray -t config <<'EOM' read -rd '' config <<'EOF'
# See this wiki page for more info: # See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() { print_info() {
@ -801,7 +801,7 @@ stdout="off"
# NOTE: Don't change this value, neofetch reads this to determine # NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility. # how to handle backwards compatibility.
config_version="3.4.1-git" config_version="3.4.1-git"
EOM EOF
# DETECT INFORMATION # DETECT INFORMATION
@ -7836,7 +7836,7 @@ get_user_config() {
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf" config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
# The config file doesn't exist, create it. # The config file doesn't exist, create it.
printf "%s\n" "${config[@]}" > "$config_file" printf "%s\n" "$config" > "$config_file"
fi fi
source "$config_file" source "$config_file"
@ -8619,7 +8619,7 @@ main() {
get_os get_os
# Load default config. # Load default config.
source /dev/stdin < <(printf "%s\\n" "${config[@]}") source /dev/stdin < <(printf "%s\n" "$config")
get_args "$@" get_args "$@"
[[ "$verbose" != "on" ]] && exec 2>/dev/null [[ "$verbose" != "on" ]] && exec 2>/dev/null