cms icon indicating copy to clipboard operation
cms copied to clipboard

bug: Bash file optimization

Open jangirvipin opened this issue 10 months ago • 1 comments

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:

  1. Navigate to setup.sh
  2. 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

jangirvipin avatar Apr 18 '25 18:04 jangirvipin

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

jangirvipin avatar Apr 20 '25 11:04 jangirvipin