X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/9feacef475c65bc8affaf641922b32dbafbb7aa2..98c9cec82e40000f44886b87a01307283b00e3e3:/user/list_large_dirs.sh diff --git a/user/list_large_dirs.sh b/user/list_large_dirs.sh index ba3c042..3dc1adb 100755 --- a/user/list_large_dirs.sh +++ b/user/list_large_dirs.sh @@ -6,7 +6,7 @@ # `vacation_photos`) could be found by running: # $ script.sh 100 "$HOME" # /home/johndoe/Pictures/unsorted/notjunk/vacation_photos -# Version: 0.0.2 +# Version: 0.1.0 yell() { echo "$0: $*" >&2; } # print script path and all args to stderr die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status @@ -43,7 +43,7 @@ checkInt() { check_depends() { local flag_return=0; - if ! command -v du; then flag_return=1; fi; + if ! command -v du 1>/dev/random 2>&1; then flag_return=1; fi; return "$flag_return"; }; # returns 1 if missing dependencies