Update find to skip unreadable directories
This commit is contained in:
2
build.sh
2
build.sh
@@ -5,7 +5,7 @@ set -eoux pipefail
|
|||||||
HUGO_ROOT=`pwd`
|
HUGO_ROOT=`pwd`
|
||||||
|
|
||||||
## Try to find cwpearson.github.io
|
## 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
|
if [[ -z "$IO_ROOT" ]]; then
|
||||||
echo "Couldn't find cwpearson.github.io in $HOME"
|
echo "Couldn't find cwpearson.github.io in $HOME"
|
||||||
|
|||||||
Reference in New Issue
Block a user