1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Update ynh_install_go

This commit is contained in:
ericgaspar 2022-10-18 09:36:18 +02:00
parent f8ecc40f96
commit d06e86dbdd

View file

@ -123,7 +123,7 @@ ynh_install_go () {
fi fi
popd popd
else else
ynh_print_info --message="Installing goenv with git..." ynh_print_info --message="Installing goenv with Git..."
mkdir -p $goenv_install_dir mkdir -p $goenv_install_dir
pushd $goenv_install_dir pushd $goenv_install_dir
git init -q git init -q
@ -139,12 +139,12 @@ ynh_install_go () {
ynh_print_info --message="\`goenv latest' command already available in \`$goenv_latest'." ynh_print_info --message="\`goenv latest' command already available in \`$goenv_latest'."
pushd "${goenv_latest%/*/*}" pushd "${goenv_latest%/*/*}"
if git remote -v 2>/dev/null | grep "https://github.com/momo-lab/xxenv-latest.git"; then if git remote -v 2>/dev/null | grep "https://github.com/momo-lab/xxenv-latest.git"; then
ynh_print_info --message="Trying to update xxenv-latest with git..." ynh_print_info --message="Trying to update xxenv-latest with Git..."
git pull -q origin master git pull -q origin master
fi fi
popd popd
else else
ynh_print_info --message="Installing xxenv-latest with git..." ynh_print_info --message="Installing xxenv-latest with Git..."
mkdir -p "${goenv_install_dir}/plugins" mkdir -p "${goenv_install_dir}/plugins"
git clone -q https://github.com/momo-lab/xxenv-latest.git "${goenv_install_dir}/plugins/xxenv-latest" git clone -q https://github.com/momo-lab/xxenv-latest.git "${goenv_install_dir}/plugins/xxenv-latest"
fi fi