From e9f491656e2a0a2c93eb5f18395253a91f4e11f3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 10 Jul 2017 00:08:15 +1000 Subject: [PATCH] tests: fix tests. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 043ec1ac..aaa24717 100755 --- a/neofetch +++ b/neofetch @@ -1891,7 +1891,7 @@ get_disk() { IFS="$old_ifs" # Stop here if 'df' fails to print disk info. - [[ -z "${disks[@]}" ]] && \ + [[ -z "${disks[*]}" ]] && \ { err "Disk: df failed to print the disks, make sure the disk_show array is set properly."; return; } for disk in "${disks[@]}"; do @@ -4150,7 +4150,7 @@ exit 1 get_args() { # Check the commandline flags early for '--config'. - [[ "$@" != *--config* ]] && get_user_config 2>/dev/null + [[ "$*" != *--config* ]] && get_user_config 2>/dev/null while [[ "$1" ]]; do case "$1" in