From 8793fdbe6b082f71d726c2c0c205334b3c0240c4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 3 May 2018 15:12:42 +1000 Subject: [PATCH] theme: Fixes for bash3 --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 195cb6f1..e3c3d92e 100755 --- a/neofetch +++ b/neofetch @@ -32,7 +32,7 @@ shopt -s nocasematch reset="\e[0m" # Neofetch default config. -readarray -t config <<'EOM' +read -rd '' config <<'EOF' # See this wiki page for more info: # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info print_info() { @@ -801,7 +801,7 @@ stdout="off" # NOTE: Don't change this value, neofetch reads this to determine # how to handle backwards compatibility. config_version="3.4.1-git" -EOM +EOF # DETECT INFORMATION @@ -7842,7 +7842,7 @@ get_user_config() { config_file="${XDG_CONFIG_HOME}/neofetch/config.conf" # The config file doesn't exist, create it. - printf "%s\n" "${config[@]}" > "$config_file" + printf "%s\n" "$config" > "$config_file" fi source "$config_file" @@ -8625,7 +8625,7 @@ main() { get_os # Load default config. - source /dev/stdin < <(printf "%s\\n" "${config[@]}") + source /dev/stdin < <(printf "%s\n" "$config") get_args "$@" [[ "$verbose" != "on" ]] && exec 2>/dev/null