get_control_field "$1" 6
}
-check_unmerged_files()
-{
- # "In POSIX sh, 'local' is undefined."
- # shellcheck disable=SC3043
- local tree="$1"
- # shellcheck disable=SC3043
- local um_files
- # shellcheck disable=SC3043
- local rm_files
-
- um_files=$(git diff 2>&1 | sed -n 's/^\* Unmerged path //p')
- if [ "$um_files" ] && [ -f "../merge-files/$tree" ]; then
- rm_files=$(grep -F "$um_files" "../merge-files/$tree")
- if [ "$rm_files" ]; then
- "$bin_dir/do_rm" "$rm_files"
- fi
- fi
-}
-
true
fi
}
+check_unmerged_files()
+{
+ # "In POSIX sh, 'local' is undefined."
+ # shellcheck disable=SC3043
+ local tree um_files rm_files
+
+ tree="$1"
+
+ um_files=$(git diff 2>&1 | sed -n 's/^\* Unmerged path //p')
+ if [ "$um_files" ] && [ -f "../merge-files/$tree" ]; then
+ rm_files=$(grep -F "$um_files" "../merge-files/$tree")
+ if [ "$rm_files" ]; then
+ "$bin_dir/do_rm" "$rm_files"
+ fi
+ fi
+}
+
if [ -f "$SHA1_FILE" ]; then
previous_tree=$(tail -n1 "$SHA1_FILE" | cut -f1 -d"$_TAB")
elif [ -z "$start_from" ]; then