← Quiz: Bash Scripting for DevOps: all 10 questions
Quiz: Bash Scripting for DevOps · Question 2 of 10
In npm test && npm run build, when does the build run?
In npm test && npm run build, when does the build run?
- A.Always
- B.Only if
npm testexits with 0 - C.Only if
npm testfails - D.Never
Answer & explanation
Correct answer: Only if npm test exits with 0
&& runs the second command only when the first one succeeded.
Can you get the rest right without peeking?
Take the timed Quiz: Bash Scripting for DevOps quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →