summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-09-06 16:52:35 -0400
committerMalf Furious <m@lfurio.us>2017-09-06 16:52:35 -0400
commitcf67abdf0e7c29c69abdcb8e9c2ba995622eeb28 (patch)
tree82be4c58a56a36d2ffcb25bf86a1c62dada60f8e
parentee7d93c9d3371d149acb0be471d68ee166db74b8 (diff)
downloadsystrunk-cf67abdf0e7c29c69abdcb8e9c2ba995622eeb28.tar.gz
systrunk-cf67abdf0e7c29c69abdcb8e9c2ba995622eeb28.zip
Fix stdin stream for interactive merge
Needed to rework how I was handling conflicting files w.r.t. interactive prompts. As it turns out, piping in find to the containing while loop was cutting-off standard in from getting to the interactive read prompts.
-rw-r--r--merge.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/merge.sh b/merge.sh
index c693790..64a6bff 100644
--- a/merge.sh
+++ b/merge.sh
@@ -109,14 +109,14 @@ function systr_merge
echo "$commit" >.systr/MERG
# resolve conflicts #
- find .systr/merge/ -name '*\*' | while read file;
+ for file in `find .systr/merge/ -name '*\*'`;
do
orig=${file::-1}
vimdiff "$orig" "$file"
rm "$file"
done
- find .systr/merge/ -name '*~' | while read file;
+ for file in `find .systr/merge/ -name '*~'`;
do
name=${file::-1}
echo "$name removed on $commit // {created on worktree}"
@@ -139,7 +139,7 @@ function systr_merge
done
done
- find .systr/merge/ -name '*\&' | while read file;
+ for file in `find .systr/merge/ -name '*\&'`;
do
name=${file::-1}
echo "$name removed on worktree // {created on $commit}"