Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full git integration #4

Open
4 tasks
Aetesaki opened this issue Jul 22, 2019 · 3 comments
Open
4 tasks

Full git integration #4

Aetesaki opened this issue Jul 22, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@Aetesaki
Copy link
Owner

Aetesaki commented Jul 22, 2019

  • Auto add and commit changes when the script editor is closed
  • Add a check for available internet connection to the online git repository
  • Option to auto push on build
  • Auto push on minor and major version
@Aetesaki Aetesaki created this issue from a note in Makescript suite (To do) Jul 22, 2019
@Aetesaki Aetesaki added the enhancement New feature or request label Jul 22, 2019
@Aetesaki

This comment has been minimized.

@Aetesaki

This comment has been minimized.

@Aetesaki
Copy link
Owner Author

Aetesaki commented Jul 22, 2019

x=$(git config remote.origin.url | cut -d":" -f1)
if [ "$x" == "https" ]; then
    repository=$(git config remote.origin.url)
elif [ "$x" == "git" ]; then
    repository="https://$(git config remote.origin.url | cut -d":" -f2)"
else
    repository="https://$(git config remote.origin.url | cut -d":" -f1 | cut -d"@" -f2)/$(git config remote.origin.url | cut -d":" -f2)"
fi

wget -q --spider "$repository"

if [ $? -eq 0 ]; then
    echo "Repository online"
else
    echo "Repository offline"
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Makescript suite
  
To do/in progress
Development

No branches or pull requests

1 participant