{"id":29272119,"url":"https://github.com/acook/osinfo.bash","last_synced_at":"2025-10-14T14:09:29.430Z","repository":{"id":3931972,"uuid":"5022463","full_name":"acook/osinfo.bash","owner":"acook","description":"Displays the OS and Distro","archived":false,"fork":false,"pushed_at":"2025-08-31T18:58:37.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-31T20:45:29.829Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acook.png","metadata":{"files":{"readme":"README.markdown","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-07-13T17:16:31.000Z","updated_at":"2025-08-31T18:58:40.000Z","dependencies_parsed_at":"2025-08-31T20:31:49.236Z","dependency_job_id":"a3b35df8-be67-47d9-957e-747db3888ed1","html_url":"https://github.com/acook/osinfo.bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acook/osinfo.bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fosinfo.bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fosinfo.bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fosinfo.bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fosinfo.bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acook","download_url":"https://codeload.github.com/acook/osinfo.bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fosinfo.bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019122,"owners_count":26086679,"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-14T02:00:06.444Z","response_time":60,"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-07-05T00:10:35.106Z","updated_at":"2025-10-14T14:09:29.425Z","avatar_url":"https://github.com/acook.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"OSinfo.bash\n===========\n\nDumps the platform and distro.\n\n    Anthony M. Cook (2012-2021)\n\nUsage\n-----\n\nI use this in my startup scripts to determine which configuration blocks should run on Linux or Mac systems.\n\nDesigned to be unixy, use filters with this to get the information you want.\n\nExample of usage:\n\n```bash\n$ osinfo.bash\nlinux\nubuntu\n$ platform=$(osinfo.bash | head -1)\n$ distro=$(osinfo.bash | tail -1)\n```\n\nPossible future enhancements\n----------------------------\n\nIf you think any of these are particularly useful, let me know, or even better send me code.\n\n* Detect PureDarwin/OpenDarwin\n* Detect OSX version (eg Lion, Leopard, Mountain Lion)\n* Detect Ubuntu version (eg Raring Ringtail, Lucid Lynx, Hardy Heron)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Fosinfo.bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facook%2Fosinfo.bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Fosinfo.bash/lists"}