Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
File for to use in Tutorial MELD
#!/bin/bash
#
BASE=$1
LOCAL=$2
REMOTE=$3
MERGED=$4
# echo "Base (b), Local: (l), Remote: (r)"
# echo -n "which file to choose [b/l/r]: "
# read opt
# case $opt in
# b|B|base|Base|BASE)
# mv $BASE $MERGED
# ;;
# l|L|local|Local|LOCAL)
# mv $LOCAL $MERGED
# ;;
# r|R|remote|Remote|REMOTE)
# mv $REMOTE $MERGED
# ;;
# *)
# echo "incorrect option"
# esac
cp -frv $BASE $MERGED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment