[sysadmin-bin: 150/168] Limit the length of repositories



commit bb49aa0ef6d0b848a78c69af72a7238a5c0eca7b
Author: Olav Vitters <olav vitters nl>
Date:   Tue Mar 8 22:24:49 2011 +0100

    Limit the length of repositories

 functions |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/functions b/functions
index 395080a..ebf5e81 100644
--- a/functions
+++ b/functions
@@ -10,4 +10,9 @@ validate_repository_name() {
         echo "'$1' is not a valid name for a GNOME project" 1>&2
         exit 1
     fi
+
+    if [ "${#1}" -gt 35 ] ; then
+        echo "'$1' is not a valid name for a GNOME project" 1>&2
+        exit 1
+    fi
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]