{ "name": "shfmt", "version": "3.14.1", "summary": "shfmt: formats shell scripts (bash, POSIX sh, mksh) and shows the difference (static Go)", "category": "tool", "license": "BSD-3-Clause", "homepage": "https://github.com/mvdan/sh", "source": { "url": "https://proxy.golang.org/mvdan.cc/sh/v3/@v/v3.14.1.zip", "sha256": "744b518b28db4b256f88954b7f5461fe2d2822f6f5818b137887bf9713175e25" }, "watch": {"kind": "index", "url": "https://proxy.golang.org/mvdan.cc/sh/v3/@v/list", "regex": "(?m)^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "go", "args": ["./cmd/shfmt"]}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/shfmt --version | has -x v3.14.1 && elf=$(readelf -l bin/shfmt) && [ -n \"$elf\" ] && ! printf '%s\\n' \"$elf\" | has 'program interpreter' && t=$(mktemp -d) && printf 'if [ -n \"$x\" ];then\\necho a\\nfi\\n' > \"$t/a.sh\" && ! bin/shfmt -i 2 -d \"$t/a.sh\" > /dev/null && [ \"$(bin/shfmt -i 2 \"$t/a.sh\")\" = \"$(printf 'if [ -n \"$x\" ]; then\\n echo a\\nfi')\" ] && bin/shfmt -i 2 -w \"$t/a.sh\" && bin/shfmt -i 2 -d \"$t/a.sh\" && ! printf 'echo $((1+' | bin/shfmt > /dev/null 2>&1 && echo 'shfmt: a script reformatted, its difference shown, a syntax error found'" }