Skip to content

Instantly share code, notes, and snippets.

View ksemel's full-sized avatar

Katherine Semel-Munson ksemel

View GitHub Profile
@ksemel
ksemel / diffmerge.sh
Created January 10, 2020 21:50
Bash: Check for diffs, and only open the merge tool if diffs are found.
#!/bin/bash
#
# Check for diffs, and only open the merge tool if diffs are found.
#
dir=$FIRSTDIRECTORY
dir2=$SECONDDIRECTORY
cd "$dir"