Loading...
Loading...
Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts.
npx skill4agent add sickn33/antigravity-awesome-skills bash-proset -Eeuo pipefailfor f in $(ls)[[ ]][ ]getoptsmktempprintfecho$()shopt -s inherit_errexitIFS=$'\n\t': "${VAR:?message}"--rm -rf -- "$dir"--traceset -xxargs -0readarraymapfileSCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"find -print0 | while IFS= read -r -d '' file; do ...; done#!/usr/bin/env bash(( BASH_VERSINFO[0] >= 4 && BASH_VERSINFO[1] >= 4 ))command -v jq &>/dev/null || exit 1case "$(uname -s)" in Linux*) ... ;; Darwin*) ... ;; esacsed -ised -i ''--verbose-vvalidate_input_filecheck_filefunction_name() {readonlylocaltimeouttimeout 30s curl ...[[ -r "$file" ]] || exit 1<(command)[[ $num =~ ^[0-9]+$ ]]eval(umask 077; touch "$secure_file")--rm -rf -- "$user_input": "${REQUIRED_VAR:?not set}"trapwhile readfor i in $(cat file)[[ ]]test${var//pattern/replacement}sedsedmapfilereadarray$(( ))exprprintfechoxargs -P--help-h--versionshdocshellman${var@U}${var@L}${parameter@operator}compatvarredir_closeexecEPOCHREALTIME[[ ${BASH_VERSINFO[0]} -ge 5 && ${BASH_VERSINFO[1]} -ge 2 ]]${parameter@Q}${parameter@E}${parameter@P}${parameter@A}wait -nmapfile -d delimshellcheck-problem-matchers.pre-commit-config.yamlshellcheckshfmtcheckbashismsshellcheck *.sh && shfmt -d *.sh && bats test/gitleakstrufflehogloggerlog_info() { logger -t "$SCRIPT_NAME" -p user.info "$*"; echo "[INFO] $*" >&2; }--helpenable=allexternal-sources=true-i 2 -ci -bn -sr -kpfor f in $(ls ...)find -print0 | while IFS= read -r -d '' f; do ...; doneset -eechoprintfreadarraymapfilebasherbpkgbasher install username/repo@versionbpkg install username/repo -gtrap 'echo "Error at line $LINENO: exit $?" >&2' ERRtrap 'rm -rf "$tmpdir"' EXIT; tmpdir=$(mktemp -d)(( BASH_VERSINFO[0] >= 5 ))readarray -d '' files < <(find . -print0)declare -g resultdeclare -A config=([host]="localhost" [port]="8080")${filename%.sh}${path##*/}${text//old/new}trap cleanup_function SIGHUP SIGINT SIGTERM{ cmd1; cmd2; } > output.log( cd dir && cmd )coproc proc { cmd; }; echo "data" >&"${proc[1]}"; read -u "${proc[0]}" resultcat <<-'EOF'-wait $pidjobs -pcmd1 && cmd2cmd1 || cmd2touch file{1..10}.txtdeclare -n ref=varnameset -Eeuo pipefail; shopt -s inherit_errexitxargs -P $(nproc) -n 1 commandjq -n --arg key "$value" '{key: $key}'time -vTIMEFORMAT