Bash script to compare two files

#!/bin/sh
echo ‘Check Gemfile…’;
if diff path/file1 path/file2 >/dev/null ; then
echo ‘Same’;
else
echo ‘Different’;
fi