1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pepettes_ynh.git synced 2024-09-03 19:56:35 +02:00

Fix repository detection

This commit is contained in:
yalh76 2021-03-14 06:00:40 +01:00
parent c8ceae6017
commit 1c5bf636b3

View file

@ -124,7 +124,7 @@ ynh_install_python () {
if [ -n "$pyenv" ]; then if [ -n "$pyenv" ]; then
ynh_print_info --message="pyenv already seems installed in \`$pyenv'." ynh_print_info --message="pyenv already seems installed in \`$pyenv'."
pushd "${pyenv%/*/*}" pushd "${pyenv%/*/*}"
if git remote -v 2>/dev/null | grep -q pyenv; then if git remote -v 2>/dev/null | grep "https://github.com/pyenv/pyenv.git"; then
echo "Trying to update with git..." echo "Trying to update with git..."
git pull -q --tags origin master git pull -q --tags origin master
cd .. cd ..
@ -147,7 +147,7 @@ ynh_install_python () {
if [ -n "$pyenv_virtualenv" ]; then if [ -n "$pyenv_virtualenv" ]; then
ynh_print_info --message="\`pyenv virtualenv' command already available in \`$pyenv_virtualenv'." ynh_print_info --message="\`pyenv virtualenv' command already available in \`$pyenv_virtualenv'."
pushd "${pyenv_virtualenv%/*/*}" pushd "${pyenv_virtualenv%/*/*}"
if git remote -v 2>/dev/null | grep -q pyenv-virtualenv; then if git remote -v 2>/dev/null | grep "https://github.com/pyenv/pyenv-virtualenv.git"; then
ynh_print_info --message="Trying to update pyenv-virtualenv with git..." ynh_print_info --message="Trying to update pyenv-virtualenv with git..."
git pull -q origin master git pull -q origin master
fi fi
@ -162,7 +162,7 @@ ynh_install_python () {
if [ -n "$pyenv_latest" ]; then if [ -n "$pyenv_latest" ]; then
ynh_print_info --message="\`pyenv latest' command already available in \`$pyenv_latest'." ynh_print_info --message="\`pyenv latest' command already available in \`$pyenv_latest'."
pushd "${pyenv_latest%/*/*}" pushd "${pyenv_latest%/*/*}"
if git remote -v 2>/dev/null | grep -q xxenv-latest; 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