You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/09/19 20:30:56 UTC

[03/11] libcloud git commit: Count just the file name length, not the length of the whole path.

Count just the file name length, not the length of the whole path.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/9643e3d1
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/9643e3d1
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/9643e3d1

Branch: refs/heads/trunk
Commit: 9643e3d13db2dc0fa25e55399ead92606679e881
Parents: 942255a
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Tue Sep 19 18:34:51 2017 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Tue Sep 19 18:34:51 2017 +0200

----------------------------------------------------------------------
 contrib/check_file_names.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/9643e3d1/contrib/check_file_names.sh
----------------------------------------------------------------------
diff --git a/contrib/check_file_names.sh b/contrib/check_file_names.sh
index 6474347..a143a42 100755
--- a/contrib/check_file_names.sh
+++ b/contrib/check_file_names.sh
@@ -23,7 +23,7 @@
 
 FILE_NAME_LENGTH_LIMIT=143
 
-FILES=$(find libcloud/ -regextype posix-basic -regex ".*/.\{${FILE_NAME_LENGTH_LIMIT},\}")
+FILES=$(find libcloud/ -regextype posix-egrep -regex ".*[^/]{${FILE_NAME_LENGTH_LIMIT},}")
 
 if [ "${FILES}" ]; then
     echo "Found files which name is longer than ${FILE_NAME_LENGTH_LIMIT} characters"