Use /usr/bin/env in shebangs

Stop assuming that bash is in /bin, and that perl and python are in
/usr/bin, etc.
Instead, use env command to find these commands in the path.
This commit is contained in:
Joe Harrison 2020-02-17 23:49:29 +00:00
parent bf66d66114
commit 7d157606ee
23 changed files with 23 additions and 23 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Andrei Costin <zveriu@gmail.com>, 2011 # Andrei Costin <zveriu@gmail.com>, 2011
# gen_pm3mfsim_script.sh # gen_pm3mfsim_script.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
. .coverity.conf || exit 1 . .coverity.conf || exit 1

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
. .coverity.conf || exit 1 . .coverity.conf || exit 1

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
. .coverity.conf || exit 1 . .coverity.conf || exit 1

2
pm3
View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Usage: run option -h to get help # Usage: run option -h to get help

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
PM3PATH=$(dirname "$0") PM3PATH=$(dirname "$0")
. "$PM3PATH/pm3" . "$PM3PATH/pm3"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
PM3PATH=$(dirname "$0") PM3PATH=$(dirname "$0")
. "$PM3PATH/pm3" . "$PM3PATH/pm3"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
PM3PATH=$(dirname "$0") PM3PATH=$(dirname "$0")
. "$PM3PATH/pm3" . "$PM3PATH/pm3"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
PM3PATH=$(dirname "$0") PM3PATH=$(dirname "$0")
cd "$PM3PATH" || exit 1 cd "$PM3PATH" || exit 1

View file

@ -1,4 +1,4 @@
#! /usr/bin/python3 #! /usr/bin/env python3
import json import json
import subprocess import subprocess

View file

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
from itertools import imap from itertools import imap
import unittest, sys, findbits import unittest, sys, findbits

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ "$1" == "" ]; then if [ "$1" == "" ]; then
echo "runtest.sh testfile" echo "runtest.sh testfile"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd $(dirname "$0") cd $(dirname "$0")
. openocd_configuration || exit 1 . openocd_configuration || exit 1

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd $(dirname "$0") cd $(dirname "$0")
. openocd_configuration || exit 1 . openocd_configuration || exit 1

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd $(dirname "$0") cd $(dirname "$0")
. openocd_configuration || exit 1 . openocd_configuration || exit 1

View file

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!/usr/bin/env perl -w
# Output a version.c file that includes information about the current build # Output a version.c file that includes information about the current build
# Normally a couple of lines of bash would be enough (see openpcd project, original firmware by Harald Welte and Milosch Meriac) # Normally a couple of lines of bash would be enough (see openpcd project, original firmware by Harald Welte and Milosch Meriac)

View file

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# #
# Read Amiibo data, decrypt, and produce EML file # Read Amiibo data, decrypt, and produce EML file
# Convert proxmark MFU (MIFARE Ultralight) .bin to .eml format # Convert proxmark MFU (MIFARE Ultralight) .bin to .eml format

View file

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# #
# Convert proxmark3 trace or wav files to formats to be used by Inspectrum # Convert proxmark3 trace or wav files to formats to be used by Inspectrum
# #

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Andrei Costin <zveriu@gmail.com>, 2011 # Andrei Costin <zveriu@gmail.com>, 2011
# pm3_eml2lower.sh # pm3_eml2lower.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Andrei Costin <zveriu@gmail.com>, 2011 # Andrei Costin <zveriu@gmail.com>, 2011
# pm3_eml2upper.sh # pm3_eml2upper.sh

View file

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
from __future__ import with_statement from __future__ import with_statement
from tempfile import mkdtemp from tempfile import mkdtemp

View file

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# -samy kamkar, rfid@samy.pl # -samy kamkar, rfid@samy.pl
use strict; use strict;

View file

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# xorcheck.py - find xor values for 8-bit LRC # xorcheck.py - find xor values for 8-bit LRC
# #