Skip to content

Commit b275a0c

Browse files
Francis DalyJunio C Hamano
authored andcommitted
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>
1 parent 6f01e6b commit b275a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-quiltimport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
115115
if [ -z "$dry_run" ] ; then
116116
git-apply --index -C1 "$tmp_patch" &&
117117
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) &&
119119
git-update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
120120
fi
121121
done

0 commit comments

Comments
 (0)