mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
fix _iter_source
This commit is contained in:
+4
-1
@@ -356,7 +356,10 @@ class TaskScript(BaseAction):
|
||||
return self.bashfile.chunks[self._chunk_index]
|
||||
|
||||
def _iter_source(self):
|
||||
if not Bakefile._is_shebang_line(self.chunk[1]):
|
||||
try:
|
||||
if not Bakefile._is_shebang_line(self.chunk[1]):
|
||||
yield "#!/usr/bin/env bash"
|
||||
except IndexErrpr:
|
||||
yield "#!/usr/bin/env bash"
|
||||
|
||||
for line in self.chunk[1:]:
|
||||
|
||||
Reference in New Issue
Block a user