forked from Breigner01/my_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepo
More file actions
executable file
·33 lines (30 loc) · 1.01 KB
/
repo
File metadata and controls
executable file
·33 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
blih -u benjamin.reigner@epitech.eu repository create $1
if [ $? -eq 0 ]
then
blih -u benjamin.reigner@epitech.eu repository setacl $1 ramassage-tek r
if [ $? -eq 0 ]
then
blih -u benjamin.reigner@epitech.eu repository getacl $1
if [ $? -eq 0 ]
then
git clone git@git.epitech.eu:/benjamin.reigner@epitech.eu/$1
if [ $? -eq 0 ]
then
echo -e "\e[38;5;46mSuccesfuly created and cloned repository, ACL succesfuly applied\e[0m"
else
echo -e "\e[38;5;45mCannot get repository rights\e[0m"
else
echo -e "\e[38;5;45mCannot give read permission to ramassage_tek\e[0m"
else
echo -e "\e[38;5;45mCannot create repository\e[0m"
<<<<<<< HEAD
if [ "$#" -eq 2 ] && [ $2 = C ] && [ $? -eq 0 ]
=======
cp ~/Documents/libs/git_config/* $1
if [ "$#" -eq 2 ] && [ $2 = C ]
>>>>>>> c334569d000c9acff86318b8bcd03ee498df6ea3
then
cp -r ~/Documents/libs/c-lib/* $1
echo -e "\e[38;5;45mAdded lib to repo\e[0m"
fi