Here is the script that I wrote:
#!/bin/bash
directory1 = ~/path/to/directory/
directory2 = ~/path/to/directory2/
diff -r $directory1 $directory2 || echo "files are different"
And here is the output/error message that appears:
./compare.sh: line 2: directory1: command not found
./compare.sh: line 3: directory2: command not found
diff: missing operand after `-r'
diff: Try `diff --help' for more information.
files are different
I know that there is a problem in a way that I defined directory1 and directory2, but I don't exactly know what is wrong. Any help would be appreciated. Thanks!