{"id":22870324,"url":"https://github.com/berquerant/install-via-git-sh","last_synced_at":"2026-04-27T23:32:47.348Z","repository":{"id":81890011,"uuid":"582791084","full_name":"berquerant/install-via-git-sh","owner":"berquerant","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-11T13:20:00.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T11:31:17.088Z","etag":null,"topics":["bash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/berquerant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-27T21:59:41.000Z","updated_at":"2022-12-27T23:14:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"180c26f0-40be-4068-92c7-bc2611710ba6","html_url":"https://github.com/berquerant/install-via-git-sh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/berquerant/install-via-git-sh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Finstall-via-git-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Finstall-via-git-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Finstall-via-git-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Finstall-via-git-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berquerant","download_url":"https://codeload.github.com/berquerant/install-via-git-sh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Finstall-via-git-sh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash"],"created_at":"2024-12-13T13:14:32.434Z","updated_at":"2026-04-27T23:32:47.332Z","avatar_url":"https://github.com/berquerant.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# install-via-git.sh\n\n```\ninstall-via-git.sh provides that `ivg_run()` to install some tools via git.\n\nUsage:\n\n1. Prepare shell to be executed to install tools.\n2. Load this in the shell.\n3. Write functions to setup, install and rollback.\n4. Call `ivg_run()`.\n\nEnvironment variables:\n\n  IVG_WORKD:\n    Working directory.\n    repo will be cloned into $IVG_WORKD/reponame\n    reponame is the 2nd argument of `ivg_run()`.\n    Default is $PWD.\n\n  IVG_FORCE_UPDATE:\n    If 0, cancel installation when no update is required.\n    Default is 0.\n\n  IVG_DEBUG:\n    If not 0, enable debug logs.\n    Default is 0.\n\n  GIT:\n    git command.\n\n  IVG_REPOSITORY:\n    Required. Repository URI to be installed.\n\n  IVG_REPOSITORY_NAME:\n    Required. Repository name to be installed.\n\n  IVG_BRANCH:\n    Branch name to be installed. Default is main.\n\n  IVG_COMMIT:\n    Commit to be installed. Default is the latest commit of IVG_BRANCH.\n\n  IVG_LOCKFILE:\n    File to save commithash. Treat this value as IVG_COMMIT when IVG_FORCE_UPDATE is not 0, or IVG_LOCKFILE exist and IVG_COMMIT is not specified.\n\n  IVG_SETUP_COMMAND:\n    Setup command.\n\n  IVG_INSTALL_COMMAND:\n    Install command.\n\n  IVG_ROLLBACK_COMMAND:\n    Rollback command.\n\n  IVG_SKIPPED_COMMAND:\n    Command to be executed when update is skipped.\n\ne.g.\n\n. install-via-git.sh\nsetup() {\n...\n\ninstall() {\n...\n\nrollback() {\n...\n\nskipped() {\n...\n\n\nexport IVG_REPOSITORY=\"https://github.com/USERNAME/path/to/repo.git\"\nexport IVG_REPOSITORY_NAME=\"reponame\"\nexport IVG_BRANCH=\"master\"\nexport IVG_SETUP_COMMAND=\"setup\" # refer setup()\nexport IVG_INSTALL_COMMAND=\"install\" # refer install()\nexport IVG_ROLLBACK_COMMAND=\"rollback\" # refer rollback()\nexport IVG_SKIPPED_COMMAND=\"skipped\" # refer skipped()\nivg_run\n\nthen\n\n1. setup()\n2. git clone https://github.com/USERNAME/path/to/repo.git $IVG_WORKD/reponame\n3. git pull\n4. skipped() and exit when no update is required\n5. install()\n\nrollback repo and rollback() if errors are occurred.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Finstall-via-git-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberquerant%2Finstall-via-git-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Finstall-via-git-sh/lists"}