Skip to content

Commit c2a89d3

Browse files
committed
Use /bin/sh when a basic shell is needed
We do not always need a full-features bash, plain sh is enougth for some scripts.
1 parent c9e498f commit c2a89d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/octocatalog-diff/fixtures/configs/trivial-enc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# The simplest and least functional ENC you'll ever see
44
echo '---'

spec/octocatalog-diff/fixtures/repos/default/config/enc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# The simplest and least functional ENC you'll ever see
44
echo '---'

spec/octocatalog-diff/tests/catalog/computed_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
context 'with working Puppet version' do
185185
before(:all) do
186186
@temp_puppet = Tempfile.new('puppet')
187-
@temp_puppet.write "#!/bin/bash\n"
187+
@temp_puppet.write "#!/bin/sh\n"
188188
@temp_puppet.write "echo '3.8.7'\n"
189189
@temp_puppet.close
190190
FileUtils.chmod 0o755, @temp_puppet.path
@@ -212,7 +212,7 @@
212212
context 'with failing Puppet version' do
213213
before(:all) do
214214
@temp_puppet = Tempfile.new('puppet')
215-
@temp_puppet.write "#!/bin/bash\n"
215+
@temp_puppet.write "#!/bin/sh\n"
216216
@temp_puppet.write "echo 1>&2 'something failed horribly'\n"
217217
@temp_puppet.write "exit 1\n"
218218
@temp_puppet.close

0 commit comments

Comments
 (0)