bah-insignia / zcmd

Docker management utilities
MIT License
8 stars 2 forks source link

Remove embedded "sudo" from ZCMD scripts #18

Open frankfont opened 5 years ago

frankfont commented 5 years ago

One or more scripts may have "sudo" embedded in them. (e.g., see devutils/zc-uncompress.sh)

This usually happens as a workaround to a misconfigured environment. Instead of embedding sudo, let's have the scripts check for write rights in the target file area and simply exit with code 2 and a clear error message if the user needs to fix permissions of a folder.