Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/pavilion/scriptcomposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class ScriptComposerError(RuntimeError):
class ScriptHeader:
"""Class to serve as a struct for the script header."""

def __init__(self, shebang='#!/bin/bash'):
def __init__(self, shebang='#!/usr/bin/bash'):
"""The header values for a script.
:param string shebang: Shell path specification. Typically
'/bin/bash'. default = None.
'/bin/bash'. default = '#!/usr/bin/bash'.
"""

# Set _shebang so that style_check doesn't complain at the setter block.
Expand Down Expand Up @@ -61,7 +61,7 @@ def __init__(self, header=None):
the variables.

:param ScriptHeader header: The header class to use. Defaults to one
that simply adds ``#!/bin/bash`` as the file header.
that simply adds ``#!/usr/bin/bash`` as the file header.
"""

if header is None:
Expand Down
4 changes: 2 additions & 2 deletions test/tests/scriptComposer_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_script_composer(self):
# Testing initialization defaults.
composer = scriptcomposer.ScriptComposer()

self.assertEqual(composer.header.shebang, '#!/bin/bash')
self.assertEqual(composer.header.shebang, '#!/usr/bin/bash')

# Testing individual assignment
test_header_shell = "/usr/env/python"
Expand All @@ -67,7 +67,7 @@ def test_script_composer(self):

composer = scriptcomposer.ScriptComposer()

self.assertEqual(composer.header.shebang, '#!/bin/bash')
self.assertEqual(composer.header.shebang, '#!/usr/bin/bash')

# Testing object assignment.
header = scriptcomposer.ScriptHeader(
Expand Down
Loading