From 77fd431dc221b645e0eaf54b717381c5d62b0ce9 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Fri, 29 Nov 2024 22:17:54 +0100 Subject: [PATCH] Add debug argument to bash script --- runParser.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runParser.sh b/runParser.sh index a0d8b2a..687f369 100644 --- a/runParser.sh +++ b/runParser.sh @@ -10,6 +10,7 @@ fi parserScriptPath="$1" # Path to parser.py htmlParentDirectory="$2" # Path to ElunaLuaEngine.github.io repository outputDirectory="$3" # Path to output directory +debug="${4:-false}" # Define the list of subdirectories to process subdirectories=("Aura" "BattleGround" "Corpse" "Creature" "ElunaQuery" "GameObject" "Group" "Guild" "Global" "Item" "Map" "Object" "Player" "Quest" "Spell" "Unit" "Vehicle" "WorldObject" "WorldPacket") @@ -17,5 +18,5 @@ subdirectories=("Aura" "BattleGround" "Corpse" "Creature" "ElunaQuery" "GameObje # Iterate over each subdirectory for subdir in "${subdirectories[@]}"; do htmlDirectory="${htmlParentDirectory}/${subdir}" - python3 "$parserScriptPath" "$htmlDirectory" "$outputDirectory" + python3 "$parserScriptPath" "$htmlDirectory" "$outputDirectory" "$debug" done