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

fix(DX): Réduisons la friction

Pas besoin de demander s'il faut installer, c'est ce qu'on veut faire de toute façon si on a lancé la commande. Ça évite juste de la relancer une deuxième fois.
parent c14406b5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -2,7 +2,7 @@
#ddev-generated
## Description: Command line interface for SPIP https://git.spip.net/spip-contrib-outils/checkout
## Usage: checkout [install|commands]
## Usage: checkout [commands]
## ExecRaw: true
function install_checkout {
......@@ -13,25 +13,7 @@ function install_checkout {
sudo ln -s $(pwd)/checkout /usr/local/bin/checkout
}
if [ "$1" == "install-checkout" ]; then
if ! command -v checkout >/dev/null; then
install_checkout
exit
else
if ! command -v checkout >/dev/null; then
read -p "Installer checkout ? [O/n]" ouinon
ouinon="${ouinon:-o}"
case $ouinon in
[oO]* )
install_checkout
exit;;
* )
echo Installation annulée...
exit;;
esac
else
checkout "$@"
fi
exit
fi
checkout "$@"
......@@ -2,7 +2,7 @@
#ddev-generated
## Description: Command line interface for SPIP https://contrib.spip.net/SPIP-Cli
## Usage: spip [install|commands]
## Usage: spip [commands]
## ExecRaw: true
function install_spipcli {
......@@ -18,25 +18,10 @@ function install_spipcli {
sudo ln -s $(pwd)/spip_console_autocomplete /etc/bash_completion.d/spip
}
if [ "$1" == "install-spip-cli" ]; then
if ! command -v spip >/dev/null; then
install_spipcli
exit
else
if ! command -v spip >/dev/null; then
read -p "Installer spip-cli ? [O/n]" ouinon
ouinon="${ouinon:-o}"
case $ouinon in
[oO]* )
install_spipcli
exit;;
* )
echo Installation annulée...
exit;;
esac
else
spip "$@"
fi
exit
fi
echo $PWD
echo `whoami`
spip "$@"
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