Merge remote-tracking branch 'refs/remotes/gitea/master'
This commit is contained in:
commit
34b2fd5f86
17
.bashrc
17
.bashrc
|
@ -63,3 +63,20 @@ fi
|
||||||
if [ -f /nfs/homes/tischmid/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ]; then
|
if [ -f /nfs/homes/tischmid/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ]; then
|
||||||
source /nfs/homes/tischmid/.config/synth-shell/better-history.sh
|
source /nfs/homes/tischmid/.config/synth-shell/better-history.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
check () {
|
||||||
|
URL="${1}"
|
||||||
|
DIR="/tmp/tmp_repo_$(date +%s)"
|
||||||
|
|
||||||
|
if [ -z "${URL}" ]; then
|
||||||
|
URL="$(git remote get-url origin)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
git clone --quiet "${URL}" "${DIR}"
|
||||||
|
if [ -d "${DIR}" ]; then
|
||||||
|
norminette "${DIR}" && printf '\033[42m%s\033[m\n' "Norminette success" || printf '\033[41m%s\033[m\n' "Norminette fail!!!"
|
||||||
|
rm -rf "${DIR}"
|
||||||
|
else
|
||||||
|
printf '\033[41m%s\033[m\n' "Could not clone the repo"
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue