mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
95875b4ec5
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>
21 lines
301 B
Bash
Executable File
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
|