Calling build.sh with -Target argument causes double targets
Closed this issue · 3 comments
kanadaj commented
Due to -target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}"
, the script seems to pass both "Default" and the actual target argument of the call which then returns the following error:
Multiple arguments with the same name (Target).
This happened while running in a docker container from pomma89/dotnet-mono:dotnet-3-mono-5-sdk
which runs some version of Debian I believe and the simple call
RUN ./build.sh -Target=Clean
.
lassana commented
Any workaround?
UPD: you probably need smth like this: ./build.sh --target UpdateBinding
kanadaj commented
I think I ended up mounting a custom build.sh file with the original target argument removed so it's simply $DRYRUN "${SCRIPT_ARGUMENTS[@]}"