chiark / gitweb /
Directories: do not process dotfiles/dot itself (!)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 18:27:04 +0000 (18:27 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 18:27:04 +0000 (18:27 +0000)
infra/makelinks

index ac907f73ce19fb38235402200f72cf2b8e66315c..55de7a63e92f6160f3da57762dcb7aca8b64ab8f 100755 (executable)
@@ -33,7 +33,7 @@ esac
 
 mode=$1; shift
 
-dots=$( find dot -maxdepth 1 -name '[0-9a-zA-Z]*[0-9a-zA-Z]' )
+dots=$( find dot -mindepth 1 -maxdepth 1 -name '[0-9a-zA-Z]*[0-9a-zA-Z]' )
 
 basepath=$(pwd)
 basepath=${basepath#$HOME/}