In msys, chmod does not work. Using the shebang makes it "executable".

Thanks to Dscho for figuring out the work around.

Signed-off-by: Mike Pape <dotzenlabs@gmail.com>
This commit is contained in:
Mike Pape
2007-08-09 16:18:50 -04:00
parent a917ddbacf
commit 96f438b98a

View File

@@ -7,6 +7,7 @@ test_description='GIT_EDITOR, core.editor, and stuff'
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
do
cat >e-$i.sh <<-EOF
#!/bin/sh
echo "Edited by $i" >"\$1"
EOF
chmod +x e-$i.sh