diff --git a/lib/pavilion/scriptcomposer.py b/lib/pavilion/scriptcomposer.py index 73917866e..a2658e1d9 100755 --- a/lib/pavilion/scriptcomposer.py +++ b/lib/pavilion/scriptcomposer.py @@ -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. @@ -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: diff --git a/test/tests/scriptComposer_tests.py b/test/tests/scriptComposer_tests.py index 734785d8d..05995c0b2 100644 --- a/test/tests/scriptComposer_tests.py +++ b/test/tests/scriptComposer_tests.py @@ -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" @@ -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(