cms
cms copied to clipboard
bug: Bash file optimization
Describe the bug As of now there is no error handling in setup.sh file . Like these command can fail and our setup will not work if we dont do error handling in setup.sh .
To Reproduce Steps to reproduce the behavior:
- Navigate to setup.sh
- docker command dont have error handling , so it can be failed .
Expected behavior These commands should be properly handled .
Screenshots or GIFs None
Info (please complete the following information):
- chrome
Additional context None
Hey you can also do something like this
if [[ $? -ne 0 ]] for checking if previous command fails instead of current approach . but both are fine