{"id":24829336,"url":"https://github.com/bitflight-devops/shell-scripts","last_synced_at":"2025-10-09T09:43:17.131Z","repository":{"id":46870627,"uuid":"515706243","full_name":"bitflight-devops/shell-scripts","owner":"bitflight-devops","description":"Scripts that simplify complex tasks, especially for GitHub Actions.","archived":false,"fork":false,"pushed_at":"2023-09-11T03:26:02.000Z","size":3254,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T01:41:33.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitflight-devops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-07-19T18:52:48.000Z","updated_at":"2023-07-01T18:59:16.000Z","dependencies_parsed_at":"2025-03-26T01:41:23.076Z","dependency_job_id":null,"html_url":"https://github.com/bitflight-devops/shell-scripts","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/bitflight-devops/shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fshell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fshell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fshell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fshell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitflight-devops","download_url":"https://codeload.github.com/bitflight-devops/shell-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fshell-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001117,"owners_count":26083022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-30T23:05:25.012Z","updated_at":"2025-10-09T09:43:17.114Z","avatar_url":"https://github.com/bitflight-devops.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Script Utilities\n\n\u003c!-- start title --\u003e\n\n\u003c!-- end title --\u003e\n\n\u003c!-- start description --\u003e\n\n\u003c!-- end description --\u003e\n\n## Use in Github actions\n\n```yml\n- uses: bitflight-devops/shell-scripts@v2\n  name: Install shell utility scripts\n```\n\n## CLI Install\n\nInstall Options as Environment Vars:\n\n- `INTERACTIVE=1` force interactive mode (default when running in a terminal)\n- `NONINTERACTIVE=1` force non-interactive mode (default when in CI environment)\n\n_Make sure that you have downloader like curl:_\nDebian \u0026 Ubuntu: `apt-get update -y -qq \u0026\u0026 apt-get install -y -qq curl`\nYum \u0026 CentOS: `yum install -y -q curl`\n\n### Install without prompts\n\n```bash\nsudo -v 2\u003e/dev/null || true # Prompt for sudo first\nNONINTERACTIVE=1 source \u003c(curl -sL \"https://raw.githubusercontent.com/bitflight-devops/shell-scripts/main/install.sh\")\nsource \"$BFD_REPOSITORY/lib/bootstrap.sh\" || true\n```\n\n## CLI Usage\n\nLoad the functions:\n\n```bash\n# SILENT_BOOTSTRAP=1 # disable info logs if uncommented\n. lib/bootstrap.sh\n```\n\nAdd this to the top of scripts that need to use the functions:\n\n```bash\n#!/usr/bin/env bash\nif [[ -z ${BFD_REPOSITORY:-} ]]; then\n  if [[ -x \"/home/bitflight-devops/.shell-scripts\" ]]; then\n    export BFD_REPOSITORY=\"/home/bitflight-devops/.shell-scripts\"\n  elif [[ -x \"${HOME}/.shell-scripts\" ]]; then\n    export BFD_REPOSITORY=\"${HOME}/.shell-scripts\"\n  elif [[ -x \"/usr/local/.shell-scripts\" ]]; then\n    export BFD_REPOSITORY=\"usr/local/.shell-scripts\"\n  elif [[ -x \"/opt/bitflight-devops/.shell-scripts\" ]]; then\n    export BFD_REPOSITORY=\"/opt/bitflight-devops/.shell-scripts\"\n  fi\nfi\n\nif [[ -n ${BFD_REPOSITORY:-} ]]; then\n  source \"${BFD_REPOSITORY}/lib/bootstrap.sh\" || true\nelif [[ -n \"${SCRIPTS_LIB_DIR}\" ]]; then\n  source \"${SCRIPTS_LIB_DIR}/bootstrap.sh\" || true\nelse\n  if command -v curl \u003e/dev/null 2\u003e\u00261; then\n    NONINTERACTIVE=1 source \u003c(curl -sL \"https://raw.githubusercontent.com/bitflight-devops/shell-scripts/main/install.sh\") || true\n  elif command -v wget \u003e/dev/null 2\u003e\u00261; then\n    NONINTERACTIVE=1 source \u003c(wget -q \"https://raw.githubusercontent.com/bitflight-devops/shell-scripts/main/install.sh\") || true\n  fi\n  if [[ -x \"${SCRIPTS_LIB_DIR}/bootstrap.sh\" ]]; then\n    source \"${SCRIPTS_LIB_DIR}/bootstrap.sh\" || true\n  else\n    echo \"Failed to run bootstrap.sh\"\n    echo \"Please install the shell-scripts repository from github.com/bitflight-devops/shell-scripts\"\n  fi\nfi\n\n## Continue the script\n\n```\n\n## Action Usage\n\n\u003c!-- start usage --\u003e\n\n\u003c!-- end usage --\u003e\n\n## GitHub Action Inputs\n\n\u003c!-- start inputs --\u003e\n\n\u003c!-- end inputs --\u003e\n\n## GitHub Action Outputs\n\n\u003c!-- start outputs --\u003e\n\n\u003c!-- end outputs --\u003e\n\n## Testing\n\nThis project uses [shUnit2](https://github.com/kward/shunit2) for testing.\nIt is included as a submodule in the `tests` directory.\nTo run the tests, run `./tests/run.sh` from the root of the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitflight-devops%2Fshell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitflight-devops%2Fshell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitflight-devops%2Fshell-scripts/lists"}