summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfix-shebang2
1 files changed, 2 insertions, 0 deletions
diff --git a/fix-shebang b/fix-shebang
index b3b9844..ee1756d 100755
--- a/fix-shebang
+++ b/fix-shebang
@@ -30,6 +30,8 @@ class FixShebang(cliapp.Application):
name = self.create_tempfile_for(arg)
temp = open(name, 'w')
shebang = self.settings['shebang']
+ if not shebang:
+ raise Exception('You must specify an interpreter with --shebang')
if not shebang.startswith('#!'):
shebang = '#!%s' % shebang
temp.write('%s\n' % shebang)