Skip to content

Commit d558681

Browse files
authored
zero-install: Use language-specific heredocs
1 parent 61fac8d commit d558681

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Formula/z/zero-install.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def install
7474
end
7575

7676
test do
77-
(testpath/"hello.sh").write <<~EOS
77+
(testpath/"hello.sh").write <<~SH
7878
#!/bin/sh
7979
echo "hello world"
80-
EOS
80+
SH
8181
chmod 0755, testpath/"hello.sh"
82-
(testpath/"hello.xml").write <<~EOS
82+
(testpath/"hello.xml").write <<~XML
8383
<?xml version="1.0" ?>
8484
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile">
8585
<name>hello-bash</name>
@@ -92,7 +92,7 @@ def install
9292
</implementation>
9393
</group>
9494
</interface>
95-
EOS
95+
XML
9696
assert_equal "hello world\n", shell_output("#{bin}/0launch --console hello.xml")
9797
end
9898
end

0 commit comments

Comments
 (0)