summaryrefslogtreecommitdiff
path: root/usr/local/sbin/newrepo
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk+piny.be@omgwallhack.org>2009-10-21 17:51:34 -0700
committerJoe Rayhawk <jrayhawk+piny.be@omgwallhack.org>2009-10-21 17:51:34 -0700
commitfcf0b75c84e72eafd01a3cfe1a21ea1a3344bdd4 (patch)
treeb6f81c5ca59579e113e6bf3638e8558a1c2ddd1e /usr/local/sbin/newrepo
parenta24383e2b312f697e1665c656e2208f6ba42ba15 (diff)
downloadpiny-code-fcf0b75c84e72eafd01a3cfe1a21ea1a3344bdd4.tar.gz
piny-code-fcf0b75c84e72eafd01a3cfe1a21ea1a3344bdd4.zip
Removing pluses from allowed characters for reponame
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 73cf68e..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 (+) signs, and minus (-) signs.\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 {