Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t0021: use write_script to create rot13 shell script
author
Jeff King
<peff@peff.net>
Wed, 2 Nov 2016 18:17:51 +0000
(14:17 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Nov 2016 02:36:29 +0000
(19:36 -0700)
This avoids us fooling around with $SHELL_PATH and the
executable bit ourselves.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021-conversion.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0f71fa2
)
diff --git
a/t/t0021-conversion.sh
b/t/t0021-conversion.sh
index a20b9f58e3fe1de2932046d5d7f692b45e3ac854..dfde2254918be3aab5aa701248f6fe8cae2e5f14 100755
(executable)
--- a/
t/t0021-conversion.sh
+++ b/
t/t0021-conversion.sh
@@
-6,13
+6,11
@@
test_description='blob conversion via gitattributes'
TEST_ROOT="$(pwd)"
-cat <<EOF >"$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