Basically I want to check if a tar command was successful. I want to produce an error if not with a if-statement. I know that I can check if a variable is empty in Bash but