mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
tests: fix tests.
This commit is contained in:
4
neofetch
4
neofetch
@@ -1891,7 +1891,7 @@ get_disk() {
|
|||||||
IFS="$old_ifs"
|
IFS="$old_ifs"
|
||||||
|
|
||||||
# Stop here if 'df' fails to print disk info.
|
# 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; }
|
{ err "Disk: df failed to print the disks, make sure the disk_show array is set properly."; return; }
|
||||||
|
|
||||||
for disk in "${disks[@]}"; do
|
for disk in "${disks[@]}"; do
|
||||||
@@ -4150,7 +4150,7 @@ exit 1
|
|||||||
|
|
||||||
get_args() {
|
get_args() {
|
||||||
# Check the commandline flags early for '--config'.
|
# Check the commandline flags early for '--config'.
|
||||||
[[ "$@" != *--config* ]] && get_user_config 2>/dev/null
|
[[ "$*" != *--config* ]] && get_user_config 2>/dev/null
|
||||||
|
|
||||||
while [[ "$1" ]]; do
|
while [[ "$1" ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Reference in New Issue
Block a user