From: Jeff King Date: Wed, 2 Nov 2016 18:17:51 +0000 (-0400) Subject: t0021: use write_script to create rot13 shell script X-Git-Tag: v2.11.0-rc1~9^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbb6707b1187392c9106a8c5405d1413f2db69d0;p=thirdparty%2Fgit.git t0021: use write_script to create rot13 shell script This avoids us fooling around with $SHELL_PATH and the executable bit ourselves. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index a20b9f58e3..dfde225491 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -6,13 +6,11 @@ test_description='blob conversion via gitattributes' TEST_ROOT="$(pwd)" -cat <"$TEST_ROOT/rot13.sh" -#!$SHELL_PATH +write_script <<\EOF "$TEST_ROOT/rot13.sh" tr \ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \ 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM' EOF -chmod +x "$TEST_ROOT/rot13.sh" generate_random_characters () { LEN=$1