bugfix
This commit is contained in:
6
createapp.pl
Normal file → Executable file
6
createapp.pl
Normal file → Executable file
@@ -31,11 +31,11 @@ if ( $name !~ /^[a-z]*$/ ) {
|
||||
exit 0;
|
||||
}
|
||||
|
||||
print "Wohin soll das neue Programm kopiert werden ( $ENV{'HOME'}/mojo ): ";
|
||||
print "Wohin soll das neue Programm kopiert werden ( $ENV{'HOME'}/git ): ";
|
||||
chomp( my $wohin = <ARGV> );
|
||||
|
||||
if ( $wohin eq "" ) {
|
||||
$wohin = "$ENV{'HOME'}/mojo";
|
||||
$wohin = "$ENV{'HOME'}/git";
|
||||
};
|
||||
if ( !-d $wohin ) {
|
||||
print STDOUT "Ordner existiert nicht, Programm wird geschlossen\n";
|
||||
@@ -120,7 +120,7 @@ chdir "$wohin/$lname/";
|
||||
system( "git init" );
|
||||
system( "git add ." );
|
||||
system( "git commit -m 'initialer Commit'" );
|
||||
system( "git remote add origin git\@git:WebApps/$uname.git" );
|
||||
system( "git remote add origin git\@gitea.opawilly.goip.de:steffen/$uname.git" );
|
||||
|
||||
system( "$wohin/$lname/deb/pbuild.sh" ) == 0
|
||||
or die "Bash Script failed";
|
||||
|
||||
Reference in New Issue
Block a user