commit:     4a853c6e719be4c16591bd947bd9cde40e6b9813
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  7 12:57:22 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Jul  7 12:57:22 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=4a853c6e

grs/RunScript.py: remove .sh from script since either python or bash will do.

 grs/RunScript.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grs/RunScript.py b/grs/RunScript.py
index a80f342..b49f4f1 100644
--- a/grs/RunScript.py
+++ b/grs/RunScript.py
@@ -20,9 +20,9 @@ class RunScript():
 
     def runscript(self, script_name):
         script_org = os.path.join(self.libdir, 'scripts/%s' % script_name)
-        script_dst = os.path.join(self.portage_configroot, 'tmp/script.sh')
+        script_dst = os.path.join(self.portage_configroot, 'tmp/script')
         shutil.copy(script_org, script_dst)
         os.chmod(script_dst, 0o0755)
-        cmd = 'chroot %s /tmp/script.sh' % self.portage_configroot
+        cmd = 'chroot %s /tmp/script' % self.portage_configroot
         Execute(cmd, timeout=None, logfile=self.logfile)
         os.unlink(script_dst)

Reply via email to