Quote strings with variables within
This prevents issues like variables being passed as 'something; rm -rf *' It also gives some robustness to spaces in file paths Also good practice to use -n for non-empty strings and -z for empty strings
Please register or sign in to comment