*: Use /usr/bin/env in shebangs for bash & zsh

To increase the portability (OSX for example has zsh under `/bin/zsh`).
This commit is contained in:
2021-07-14 13:48:21 +02:00
parent 1fff0c584c
commit b1d396babd
19 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
XDG_CONF="${XDG_CONFIG_HOME:-$HOME/.config}" XDG_CONF="${XDG_CONFIG_HOME:-$HOME/.config}"
BASE_DIR="$XDG_CONF/polybar" BASE_DIR="$XDG_CONF/polybar"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## config ## config

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# See https://github.com/polybar/polybar-scripts/pull/237 # See https://github.com/polybar/polybar-scripts/pull/237
bluetooth_print() { bluetooth_print() {

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# The separation and recursion is sadly necessary since reload is apparently # The separation and recursion is sadly necessary since reload is apparently
# executed in a subshell and thus using an environment variable does not work # executed in a subshell and thus using an environment variable does not work

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
echo $(curl -s https://ipinfo.io/ip) echo $(curl -s https://ipinfo.io/ip)

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Inspired by https://github.com/cramermarius/rofi-menus/blob/master/scripts/powermenu.sh # Inspired by https://github.com/cramermarius/rofi-menus/blob/master/scripts/powermenu.sh
# entries with associated commands # entries with associated commands

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# !Modified! /usr/share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh # !Modified! /usr/share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh
# Example locker script -- demonstrates how to use the --transfer-sleep-lock # Example locker script -- demonstrates how to use the --transfer-sleep-lock

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2019-11-28 ## Created: 2019-11-28
## ##

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2021-05-15 ## Created: 2021-05-15
## ##

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2020-09-13 ## Created: 2020-09-13
## ##

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2020-08-28 ## Created: 2020-08-28
## ##

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2021-05-14 ## Created: 2021-05-14
## ##

View File

@@ -1,4 +1,4 @@
#!/usr/bin/zsh #!/usr/bin/env zsh
## Author: druckdev ## Author: druckdev
## Created: 2019-10-21 ## Created: 2019-10-21
## ##

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## Author: druckdev ## Author: druckdev
## Created: 2020-06-14 ## Created: 2020-06-14

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
################################################################################ ################################################################################
# #

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
TAGS_TO_TRANSFER=( TAGS_TO_TRANSFER=(
-Orientation -Orientation

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## This runs as a crontab every 5minutes ('*/5 * * * * /usr/local/bin/wifi-mute') ## This runs as a crontab every 5minutes ('*/5 * * * * /usr/local/bin/wifi-mute')

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# A hook script to check the commit log message. # A hook script to check the commit log message.
# Called by "git commit" with one argument, the name of the file that has the # Called by "git commit" with one argument, the name of the file that has the

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
[[ $# -eq 1 ]] || { echo "Specify what to do" >&2; exit 1; } [[ $# -eq 1 ]] || { echo "Specify what to do" >&2; exit 1; }