summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@libreoffice.org>2018-04-09 18:45:06 +0200
committerJan Holesovsky <kendy@collabora.com>2018-04-09 19:07:15 +0200
commit653c601a44a89ba631845e0ed5b9a3136263ae35 (patch)
treed4aac9f66914861ddde47366f911f22d33f95630
parent0ab76b7ca620dcae8f730048b08de1c3cbd0d7ea (diff)
s/echo `…`/…/ (avoid spawning a subshell)
-rwxr-xr-xto-git.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/to-git.sh b/to-git.sh
index 0d0d8fc..e45e56f 100755
--- a/to-git.sh
+++ b/to-git.sh
@@ -80,7 +80,7 @@ done
sleep 60
for I in `sed -e 's/^[#:].*//' -e 's/^ignore-.*//' -e 's/=.*//' -e 's/:.*//' "$LAYOUT" | grep -v '^$'` ; do
- ( cd "$TARGET/$I" ; echo `pwd` ; git branch | sed 's/^\*/ /' | grep 'tag-branches/' | xargs git branch -D )
+ ( cd "$TARGET/$I" ; pwd ; git branch | sed 's/^\*/ /' | grep 'tag-branches/' | xargs -r git branch -D )
rm $I.dump
done