What does set -u do in bash script?
I’ve seen bash shell scripts which have this before some other commands
What does it do? I can’t seem to find any documentation on it.
-u Treat unset variables as an error when substituting.
You can give this page a try :