fix(scripts): address PR review feedback for shellspec installer

Add companion install-shellspec.md documentation file to match
codebase convention. Add --depth=1 to git pull for consistent
shallow clone behavior.
This commit is contained in:
2026-03-02 02:30:19 +02:00
parent 963559cf75
commit 9584b2ccd1
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
# install-shellspec
Installs [shellspec](https://github.com/shellspec/shellspec), a BDD-style
testing framework for shell scripts.
## Usage
```bash
scripts/install-shellspec.sh
```
The script clones shellspec to `~/.cache/shellspec` and runs
`make install PREFIX=$HOME/.local`, placing the binary in `~/.local/bin/`.
Re-running the script pulls the latest version and reinstalls.

View File

@@ -12,7 +12,7 @@ install_shellspec()
{
if [[ -d "$SHELLSPEC_CACHE" ]]; then
msgr ok "shellspec repo already cloned, pulling latest..."
git -C "$SHELLSPEC_CACHE" pull --quiet
git -C "$SHELLSPEC_CACHE" pull --quiet --depth=1
else
git clone --depth 1 "$SHELLSPEC_REPO" "$SHELLSPEC_CACHE"
fi