Skip to content
Extraits de code Groupes Projets
Valider 40454e17 rédigé par nicod's avatar nicod
Parcourir les fichiers

fix: Mémoriser le path d'origine pour y revenir après les `cd`

parent 7a2d278d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -6,11 +6,13 @@
## ExecRaw: true
function install_checkout {
where=$(pwd)
# installation
cd /opt
sudo git clone https://git.spip.net/spip-contrib-outils/checkout.git
cd checkout
sudo ln -s $(pwd)/checkout /usr/local/bin/checkout
cd "$where"
}
if ! command -v checkout >/dev/null; then
......
......@@ -6,6 +6,7 @@
## ExecRaw: true
function install_spipcli {
where=$(pwd)
# installation
cd /opt
sudo git clone https://git.spip.net/spip-contrib-outils/spip-cli.git
......@@ -16,6 +17,7 @@ function install_spipcli {
cd bin
sudo ln -s $(pwd)/spip /usr/local/bin/
sudo ln -s $(pwd)/spip_console_autocomplete /etc/bash_completion.d/spip
cd "$where"
}
if ! command -v spip >/dev/null; then
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter