git-quiltimport /bin/sh-ism fix
Bryan Wu reported /usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))' Most bourne-ish shells I have here accept x=$((echo x)|cat) but all bourne-ish shells I have here accept x=$( (echo x)|cat) because $(( might mean arithmetic expansion. Signed-off-by: Francis Daly <francis@daoine.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Francis Daly committed
Mar 29, 2007 at 22:38 UTC
b275a0c9e742e4bbfed9794b1e477000440eaf6a
1 file changed
+1
-1
git-quiltimport.sh
+1
-1
@@ -115,7 +115,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
115
if [ -z "$dry_run" ] ; then
116
git-apply --index -C1 "$tmp_patch" &&
117
tree=$(git-write-tree) &&
118
- commit=$((echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) &&
118
+ commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) &&
119
git-update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
120
fi
121
done