mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
Fix repository detection
This commit is contained in:
parent
c5ac725196
commit
cd354e2436
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ ynh_install_go () {
|
||||||
if [ -n "$goenv" ]; then
|
if [ -n "$goenv" ]; then
|
||||||
ynh_print_info --message="goenv already seems installed in \`$goenv'."
|
ynh_print_info --message="goenv already seems installed in \`$goenv'."
|
||||||
pushd "${goenv%/*/*}"
|
pushd "${goenv%/*/*}"
|
||||||
if git remote -v 2>/dev/null | grep -q goenv; then
|
if git remote -v 2>/dev/null | grep "https://github.com/syndbg/goenv.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 ..
|
||||||
|
@ -138,7 +138,7 @@ ynh_install_go () {
|
||||||
if [ -n "$goenv_latest" ]; then
|
if [ -n "$goenv_latest" ]; then
|
||||||
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 -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue