From 24fda14e596381cdde6d7e6cdab9838c0a143fcd Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 27 Sep 2017 16:43:01 -0500 Subject: [PATCH] Update find to skip unreadable directories --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 381257c..b3c7942 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ set -eoux pipefail HUGO_ROOT=`pwd` ## Try to find cwpearson.github.io -IO_ROOT=`find $HOME -name cwpearson.github.io` +IO_ROOT=`find $HOME -type d ! -perm -a+r -prune -o -name cwpearson.github.io -print` if [[ -z "$IO_ROOT" ]]; then echo "Couldn't find cwpearson.github.io in $HOME"