{"id":17057861,"url":"https://github.com/fluential/bash-script-template","last_synced_at":"2026-05-18T06:36:06.964Z","repository":{"id":29261388,"uuid":"32794008","full_name":"fluential/bash-script-template","owner":"fluential","description":"A bash script template / boilerplate to start your script with","archived":false,"fork":false,"pushed_at":"2021-04-07T16:10:07.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T15:57:46.535Z","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/fluential.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}},"created_at":"2015-03-24T11:18:46.000Z","updated_at":"2023-12-27T17:10:12.000Z","dependencies_parsed_at":"2022-08-03T10:30:41.150Z","dependency_job_id":null,"html_url":"https://github.com/fluential/bash-script-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluential%2Fbash-script-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluential%2Fbash-script-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluential%2Fbash-script-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluential%2Fbash-script-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluential","download_url":"https://codeload.github.com/fluential/bash-script-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066710,"owners_count":20555430,"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","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":"2024-10-14T10:28:17.802Z","updated_at":"2026-05-18T06:36:01.925Z","avatar_url":"https://github.com/fluential.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![HitCount](http://hits.dwyl.com/fluential/bash-script-template.svg)](http://hits.dwyl.com/fluential/bash-script-template)\n# bash-script-template\nA bash script template / boilerplate to start your script with.\n\nIt should cover all basic needs to create robust bash scripts - this is mostly around error handling + links to some guide documents, it will:\n - Gracefully cleanup() after itself by trapping SIGHUP SIGINT SIGQUIT SIGTERM signals - very usefull when you work on some resources and you want to release them even when the script is interrupted\n - Set shopt -s nullglob dotglob for better handling bash file expansions - becasue you should NOT parse ls output\n - Set -o pipefail to surface any failed commands torugh the pipe-line\n\nThere is no main function which the primary purpose is to make script sourceable by other scripts for function re-use.\nBash requires extra work to surface errors when you source scripts and if you really need more than this template you should consider a different language.\n\nFeel free to contribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluential%2Fbash-script-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluential%2Fbash-script-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluential%2Fbash-script-template/lists"}