diff options
author | Malf Furious <m@lfurio.us> | 2017-09-06 16:52:35 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-09-06 16:52:35 -0400 |
commit | cf67abdf0e7c29c69abdcb8e9c2ba995622eeb28 (patch) | |
tree | 82be4c58a56a36d2ffcb25bf86a1c62dada60f8e | |
parent | ee7d93c9d3371d149acb0be471d68ee166db74b8 (diff) | |
download | systrunk-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.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}" |