Use env to account for PATH interpreter precedence

This commit is contained in:
Eric Torres 2020-06-22 11:21:19 -07:00
parent 144190b1c9
commit 6b595f44a3
11 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# Copy a file from ~/Templates to a given name # Copy a file from ~/Templates to a given name
# #
# Dependencies: # Dependencies:

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
"""Wrapper script for using dd to write to a USB drive.""" """Wrapper script for using dd to write to a USB drive."""
import argparse import argparse

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
"""Check the temperature of a drive. """Check the temperature of a drive.
Functions: Functions:
verify_device_node(query) verify_device_node(query)

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
""" """
Fuzzy-find a file and edit it. Fuzzy-find a file and edit it.

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# fless - fuzzy find a file and run less on it # fless - fuzzy find a file and run less on it
# Dependencies # Dependencies
# - fd (soft) # - fd (soft)

2
gek.sh
View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# Export a key to a given keyfile # Export a key to a given keyfile
echo -n "Enter the name of the output file: " echo -n "Enter the name of the output file: "

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
"""Obtain a weather forecast.""" """Obtain a weather forecast."""
import argparse import argparse

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# List all groups in the system # List all groups in the system
sort <(awk -F ':' '{print $1}' < /etc/group) sort <(awk -F ':' '{print $1}' < /etc/group)

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# List all users on the system # List all users on the system
sort --unique <(awk -F ':' '{print $1}' < /etc/passwd) sort --unique <(awk -F ':' '{print $1}' < /etc/passwd)

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
# open - fuzzy find, select, and open a file using xdg-open # open - fuzzy find, select, and open a file using xdg-open
# #
# Dependencies: # Dependencies:

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
""" """
quickdel - delete any file matching a query quickdel - delete any file matching a query