Put an Exit Code function in Scripts May 11, 2023Posted inLoggingTags: Bash Scripts, debug, log, Scripts To check the exit code of a process, test against the variable $? Put an Exit Code function in Scripts: rsync -avu /Folder1/ /Folder2/ if [ $? = 0 ];…