Skip to content

Commit

Permalink
use \#\!/usr/bin/env bash for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Feb 27, 2024
1 parent a11a821 commit b101452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/mxmake/templates/script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down
12 changes: 6 additions & 6 deletions src/mxmake/tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_TestScript(self, tempdir):
with open(os.path.join(tempdir, "run-tests.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down Expand Up @@ -205,7 +205,7 @@ def test_TestScript(self, tempdir):
with open(os.path.join(tempdir, "run-tests.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down Expand Up @@ -237,7 +237,7 @@ def test_TestScript(self, tempdir):
with open(os.path.join(tempdir, "run-tests.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down Expand Up @@ -324,7 +324,7 @@ def test_CoverageScript(self, tempdir):
with open(os.path.join(tempdir, "run-coverage.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down Expand Up @@ -391,7 +391,7 @@ def test_CoverageScript(self, tempdir):
with open(os.path.join(tempdir, "run-coverage.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down Expand Up @@ -436,7 +436,7 @@ def test_CoverageScript(self, tempdir):
with open(os.path.join(tempdir, "run-coverage.sh")) as f:
self.checkOutput(
"""
#!/bin/bash
#!/usr/bin/env bash
#
# THIS SCRIPT IS GENERATED BY MXMAKE.
# CHANGES MADE IN THIS FILE WILL BE LOST.
Expand Down

0 comments on commit b101452

Please sign in to comment.