fix/issue-183-destroy-base-requires-target
main
Removed erroneous code that set target="" when target="--base". This caused the early exit at 'if [ -z "$target" ]' to trigger before reaching the actual --base handling at line 517.