From c428cca23688872081dc28f81128659064b0b192 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Jul 2020 17:37:41 +0200 Subject: New script for new repo --- gitjoe-newrepo.pl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 gitjoe-newrepo.pl diff --git a/gitjoe-newrepo.pl b/gitjoe-newrepo.pl new file mode 100755 index 0000000..dc91e6e --- /dev/null +++ b/gitjoe-newrepo.pl @@ -0,0 +1,24 @@ +#!/usr/local/bin/perl + +use strict; +use warnings; +use Term::ANSIColor; + +sub main { + my $argc = $#ARGV + 1; + if ($argc < 2) { + print colored("Failed!\n", 'bold red') + . "Missing argument, 2 needed " + . colored("[user - reponame]", 'bold') + . "\n"; + exit 1; + } + my $usr = $ARGV[0]; + my $repo = $ARGV[1]; + my $home_dir = '/usr/home/' . $usr . '/'; + exit; +} + +main(); + +__END__ -- cgit v1.2.3