In english, please

This commit is contained in:
2020-12-09 18:26:04 +00:00
parent a3005fc276
commit a4718158be
3 changed files with 41 additions and 29 deletions

View File

@@ -1,24 +1,25 @@
#!/usr/bin/env bash
set -eu
if [ "$#" -ne 1 ]; then
echo "Hey man, met ton nom !"
echo "Regarde, comme ça:"
echo "Hey man, give me your name !"
echo "See, like this:"
echo " $0 roberto"
exit
fi
CONFIG="/home/pi/outils/git-multi-user/gitconfig_$1"
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CONFIG=${ROOT_DIR}"/gitconfig_$1"
if [ ! -f "$CONFIG" ]; then
echo "Ton fichier de configuration '$CONFIG' n'existe pas. :("
echo "Va voir dans le dossier ~/git"
echo "Your configuration file '${CONFIG}' does not exist. :("
echo "Create it in '${ROOT_DIR}'"
exit
fi
git config --local include.path $CONFIG
echo "La configuration est bien chargée: '$CONFIG'. Enjoy !"
echo "Pour effacer la configuration, lancer:"
echo "Your git configuration '${CONFIG}' is well loaded. Enjoy !"
echo "When job is done, don't forget to clean it:"
echo " git-stop"