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.
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.