{"id":15822068,"url":"https://github.com/sambacha/sh3ll","last_synced_at":"2026-04-15T16:02:04.753Z","repository":{"id":40655680,"uuid":"287818744","full_name":"sambacha/sh3ll","owner":"sambacha","description":"shell scripts for git, ci/cd, etc","archived":false,"fork":false,"pushed_at":"2024-01-09T13:59:20.000Z","size":76,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T01:57:31.571Z","etag":null,"topics":["bash","cli","scripts","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambacha.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-08-15T20:19:09.000Z","updated_at":"2022-01-02T10:44:44.000Z","dependencies_parsed_at":"2024-10-05T08:00:42.580Z","dependency_job_id":"ee2ad4a2-8daa-476e-8ddf-f1bb7673b33e","html_url":"https://github.com/sambacha/sh3ll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sambacha/sh3ll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fsh3ll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fsh3ll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fsh3ll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fsh3ll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambacha","download_url":"https://codeload.github.com/sambacha/sh3ll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fsh3ll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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","cli","scripts","shell","terminal"],"created_at":"2024-10-05T08:00:29.226Z","updated_at":"2026-04-15T16:02:04.719Z","avatar_url":"https://github.com/sambacha.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `_s_h_e_l_l`\n\nshell scripts for git, ci/cd, etc\n\n```shell\n          make -C git -j$(sysctl -n hw.physicalcpu) GIT-VERSION-FILE dist dist-doc\n```\n\n```bash\n mkfifo pipe\n tee out.txt \u003c pipe \u0026\n command \u003e pipe\n echo $?\n ```\n\n```sh\n# Source: http://fvue.nl/wiki/Bash:_Error_handling\n#\n#!/bin/bash -eu\n# -e: Exit immediately if a command exits with a non-zero status.\n# -u: Treat unset variables as an error when substituting.\n \n(false)                   # Caveat 1: If an error occurs in a subshell, it isn't detected\n(false) || false          # Solution: If you want to exit, you have to detect the error yourself\n(false; true) || false    # Caveat 2: The return status of the ';' separated list is `true'\n(false \u0026\u0026 true) || false  # Solution: If you want to control the last command executed, use `\u0026\u0026'\n```\n\n### mk dmg\n\n```bash\n       die () {\n            echo \"$*\" \u003e\u00262\n            exit 1\n          }\n          VERSION=\"`sed -n 's/^GIT_VERSION = //p' \u003cgit/GIT-VERSION-FILE`\"\n          test -n \"$VERSION\" ||\n          die \"Could not determine version!\"\n          export VERSION\n          ln -s git git-$VERSION\n          mkdir -p build \u0026\u0026\n          cp git/git-$VERSION.tar.gz git/git-manpages-$VERSION.tar.gz build/ ||\n          die \"Could not copy .tar.gz files\"\n          # drop the -isysroot `GIT_SDK` hack\n          sed -i .bak -e 's/ -isysroot .(SDK_PATH)//' Makefile ||\n          die \"Could not drop the -isysroot hack\"\n          # make sure that .../usr/local/git/share/man/ exists\n          sed -i .bak -e 's/\\(tar .*-C \\)\\(.*\\/share\\/man\\)$/mkdir -p \\2 \\\u0026\\\u0026 \u0026/' Makefile ||\n          die \"Could not edit Makefile\"\n          # For debugging:\n          #\n          # cat Makefile\n          # make vars\n          PATH=/usr/local/bin:/System/Library/Frameworks:$PATH \\\n          make build/intel-universal-snow-leopard/git-$VERSION/osx-built-keychain ||\n          die \"Build failed\"\n          PATH=/usr/local/bin:$PATH \\\n          make image ||\n          die \"Build failed\"\n          mkdir osx-installer \u0026\u0026\n          mv *.dmg disk-image/*.pkg osx-installer/\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Fsh3ll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambacha%2Fsh3ll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Fsh3ll/lists"}