👌 IMPROVE: Dump naming

This commit is contained in:
Austin Ginder 2025-08-16 19:53:13 -04:00
parent 8c60f2e9d2
commit 02b216c6cb

View file

@ -22,10 +22,14 @@ function run_dump() {

local OUTPUT_BASENAME
OUTPUT_BASENAME=$(basename "$SEARCH_DIR")
local OUTPUT_FILE
if [ "$OUTPUT_BASENAME" == "." ]; then
OUTPUT_BASENAME="dump"
# If searching in the current dir, use the folder's name for the output file.
OUTPUT_BASENAME=$(basename "$(pwd)")
OUTPUT_FILE="${OUTPUT_BASENAME}-dump.txt"
else
OUTPUT_FILE="${OUTPUT_BASENAME}.txt"
fi
local OUTPUT_FILE="${OUTPUT_BASENAME}.txt"

# --- 3. Process Files ---
> "$OUTPUT_FILE"