Skip to content

Commit

Permalink
Merge pull request #121 from trofi/cvise-shell-via-env
Browse files Browse the repository at this point in the history
cvise.py: call shell vial `/usr/bin/env` indirection instead of `/bin`
  • Loading branch information
marxin authored Nov 16, 2023
2 parents cc76e98 + 6a416eb commit 4ba39a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvise.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def get_available_cores():
script = None
if args.commands:
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.sh') as script:
script.write(f'#!/bin/{args.shell}\n\n')
script.write(f'#!/usr/bin/env {args.shell}\n\n')
script.write(args.commands + '\n')
os.chmod(script.name, 0o744)
logging.info('Using temporary interestingness test: %s' % script.name)
Expand Down

0 comments on commit 4ba39a2

Please sign in to comment.