Automatic add
This commit is contained in:
parent
54818eb0e5
commit
e17452b209
14
.bashrc
14
.bashrc
|
@ -245,3 +245,17 @@ next () {
|
|||
next_dir="ex${padded}"
|
||||
builtin cd "../${next_dir}"
|
||||
}
|
||||
|
||||
clone42 () {
|
||||
repo_url="${1}"
|
||||
folder="${2}"
|
||||
\unset -f norminette
|
||||
|
||||
git clone --quiet "${repo_url}" ${folder}
|
||||
if [ "${?}" = "0" ]; then
|
||||
cd "${folder}"
|
||||
\norminette -R CheckForbiddenSourceHeader "."
|
||||
else
|
||||
printf '%s\n' "Could not clone repo!"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue