summaryrefslogtreecommitdiff
path: root/usr/local/sbin/newrepo
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2010-03-17 20:12:16 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2010-03-17 20:12:16 -0700
commit5d8181b24e6beed6a3fce863a6093bc6a8f0b3ed (patch)
treef4f8a13f886586477e222196e8e663971e061403 /usr/local/sbin/newrepo
parent63ff3bdf9a2fd1967380ad7602d0ce4e44a4d432 (diff)
parent5361765cf9ba71e8c7a2d676922c2ce0d750050f (diff)
downloadpiny-code-5d8181b24e6beed6a3fce863a6093bc6a8f0b3ed.tar.gz
piny-code-5d8181b24e6beed6a3fce863a6093bc6a8f0b3ed.zip
Merge branch 'master' of piny.be:/srv/git/piny-code
Diffstat (limited to 'usr/local/sbin/newrepo')
-rwxr-xr-xusr/local/sbin/newrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/newrepo b/usr/local/sbin/newrepo
index 8cee460..15bbde6 100755
--- a/usr/local/sbin/newrepo
+++ b/usr/local/sbin/newrepo
@@ -6,9 +6,9 @@ use warnings;
my( $errorto ) = 'jrayhawk+piny.be@omgwallhack.org'; # Email address to send horrible errors to.
my( $reponame, $email, @errors, $wikilisttempfile, $cgitrctempfile, $description );
-if ( ( ! scalar $ARGV[0] ) or ( scalar $ARGV[1] ) or ( $ARGV[0] !~ /^[a-z0-9][a-z0-9+.-]+$/ ) ) {
+if ( ( ! scalar $ARGV[0] ) or ( scalar $ARGV[1] ) or ( $ARGV[0] !~ /^[a-z0-9][a-z0-9-]+$/ ) ) {
print( "Usage: newrepo REPONAME\n" );
- print( " REPONAME must consist only of lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.).\n" );
+ print( " REPONAME must consist only of lower case letters (a-z), digits (0-9), and minus (-) signs.\n" );
print( " REPONAME must be at least two characters long and must start with an alphanumeric character.\n" );
exit( 1 );
} else {