diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:37:41 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:37:41 +0200 |
commit | c428cca23688872081dc28f81128659064b0b192 (patch) | |
tree | aede09a477f1c6aaab4fa9b1b3033e81460691d3 /gitjoe-newrepo.pl | |
parent | Fix (diff) | |
download | joe-scripts-c428cca23688872081dc28f81128659064b0b192.tar.gz joe-scripts-c428cca23688872081dc28f81128659064b0b192.tar.bz2 joe-scripts-c428cca23688872081dc28f81128659064b0b192.tar.xz joe-scripts-c428cca23688872081dc28f81128659064b0b192.tar.zst joe-scripts-c428cca23688872081dc28f81128659064b0b192.zip |
New script for new repo
Diffstat (limited to 'gitjoe-newrepo.pl')
-rwxr-xr-x | gitjoe-newrepo.pl | 24 |
1 files changed, 24 insertions, 0 deletions
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__ |