Open abcfy2 opened 3 years ago
Hum, I'm not sure. I try to keep the command-line arguments on bestzip to a subset of those on the native zip
command, and mine doesn't appear to have one for changing the CWD. Also, that can be handled by just doing a cd
into the appropriate directory first.
Controlling the CWD from the outside means any actions after bestzip have to account for the folder change.
build && cd dist && bestzip ../output.zip ./* && cd .. && deploy output.zip
vs
build && bestzip -C dist ../output.zip ./* && deploy output.zip
To me, the first, while it works, is less elegant.
Just like
tar -C
, this is used for one line command withoutcd
:Also cpy-cli provide this option: