From: Steven Baltakatei Sandoval Date: Thu, 1 Dec 2022 09:03:23 +0000 (+0000) Subject: feat(user/list_large_dirs.sh):Set version 1.0.0 X-Git-Tag: 0.6.0~3 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/68c5517b9e4a570082ce8223701449f6dc9608bc?ds=sidebyside;hp=9feacef475c65bc8affaf641922b32dbafbb7aa2 feat(user/list_large_dirs.sh):Set version 1.0.0 --- 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