diff --git a/sendmail.sh b/sendmail.sh index 737c253..651d865 100755 --- a/sendmail.sh +++ b/sendmail.sh @@ -1,4 +1,4 @@ -if [[ $(git diff HEAD) ]]; then +if [ "$(git diff HEAD)" ]; then git diff HEAD > ./results/$1/changes.txt date >> ./results/$1/changes.txt @@ -6,4 +6,4 @@ if [[ $(git diff HEAD) ]]; then echo -e '\n [+] Mail Sent for changes in $1 on '$(date)'' else echo 'No changes found in '$1'' -fi \ No newline at end of file +fi