So I have a file deploy.sh, and it has the shell script. Since I know about it, I have a little confusion, that is what does that set -x
actually means.
After running the file I have observed that the command written after it in the file gets mentioned in the terminal with a + sign.
Like if I have this,
#!/bin/bash
set -x
ng build
So the output mentions +ng build
, and when I comment the set -x
from the file, everything executes, but the later commands does not show up in the terminal.
I have researched about it, but specifically couldn't find the real meaning and work of this particular command.