Files
trailofbits-buttercup/scripts/results_unpack.sh
Dan Guido 95875b4ec5 fix: apply shellcheck and shfmt fixes to all shell scripts
Apply automated fixes from shellcheck and shfmt to all shell scripts:
- Quote variables to prevent word splitting and globbing
- Use $(...) instead of backticks for command substitution
- Add proper shebang and set -euo pipefail where missing
- Fix array handling and iteration patterns
- Consistent indentation (4 spaces)
- Remove unnecessary curly braces and simplify expressions

Files fixed:
- deployment/*.sh
- scripts/*.sh
- orchestrator/scripts/*.sh
- fuzzer_runner/runner.sh
- protoc.sh

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:13:16 +01:00

21 lines
301 B
Bash
Executable File

#!/bin/bash
if [ "$#" -ne 0 ]; then
echo "usage: $0"
exit 1
fi
# Clean up
rm -rf tasks_storage
# Unpack
tar xvf tasks_storage.tar
# Decompress
find tasks_storage -name '*.tgz' | while IFS= read -r fn; do
dst="${fn%.tgz}"
mkdir "$dst"
tar xvzf "$fn" -C "$dst"
rm "$fn"
done