adrianriobo / deliverest

Base container to acting as a delivery container for multi arch and multi platform
0 stars 4 forks source link

commands on mac fails #49

Open albfan opened 3 hours ago

albfan commented 3 hours ago

complex commands (like arguments with spaces) fail execution on mac.

Is not due to mac itself but due to use of sudo su - $USER -c "command $@"

albfan commented 3 hours ago

There're several solutions:

The expansion is a string that is the value of parameter quoted in a format that can be reused as input.


      This requires to use eval, like eval "${@@Q}". Evaluate if passing this argument initially might solve all cases without using eval