how to find a shell script is re-executable and would not overwrite the configuration/any such changes made.
Something like bash -x script.sh is used to to debug a script, to check whether each line of the script is getting successfully executed or not.
What i meant is suppose script.sh is having commands to:
- Create soft-link for some file
- Changing some values to some configuration file.
So, such a script if I execute again and again, would the changes take into effect or it would overwrite and change system's configuration, how do we ensure such things ?