1 |
commit: 4a853c6e719be4c16591bd947bd9cde40e6b9813 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 7 12:57:22 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 7 12:57:22 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=4a853c6e |
7 |
|
8 |
grs/RunScript.py: remove .sh from script since either python or bash will do. |
9 |
|
10 |
grs/RunScript.py | 4 ++-- |
11 |
1 file changed, 2 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/grs/RunScript.py b/grs/RunScript.py |
14 |
index a80f342..b49f4f1 100644 |
15 |
--- a/grs/RunScript.py |
16 |
+++ b/grs/RunScript.py |
17 |
@@ -20,9 +20,9 @@ class RunScript(): |
18 |
|
19 |
def runscript(self, script_name): |
20 |
script_org = os.path.join(self.libdir, 'scripts/%s' % script_name) |
21 |
- script_dst = os.path.join(self.portage_configroot, 'tmp/script.sh') |
22 |
+ script_dst = os.path.join(self.portage_configroot, 'tmp/script') |
23 |
shutil.copy(script_org, script_dst) |
24 |
os.chmod(script_dst, 0o0755) |
25 |
- cmd = 'chroot %s /tmp/script.sh' % self.portage_configroot |
26 |
+ cmd = 'chroot %s /tmp/script' % self.portage_configroot |
27 |
Execute(cmd, timeout=None, logfile=self.logfile) |
28 |
os.unlink(script_dst) |