1

Switch to using env to find bash

This commit is contained in:
Evan Pratten 2024-05-20 20:32:58 -04:00
parent 6c7eff0323
commit 3f60cafb2c
38 changed files with 38 additions and 38 deletions

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
notify-send "Current Track" "$(spotify-now-playing)" notify-send "Current Track" "$(spotify-now-playing)"

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
gnome-terminal -- tinker gnome-terminal -- tinker

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
cd ~ && gnome-terminal cd ~ && gnome-terminal

View File

@ -1,3 +1,3 @@
#! /bin/bash #! /usr/bin/env bash
sleep 1 sleep 1
exit 1 exit 1

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
WEBSERVER_PATH=$HOME/www WEBSERVER_PATH=$HOME/www

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
python3 ~/.config/ewconfig/scripts/video_trimmer python3 ~/.config/ewconfig/scripts/video_trimmer

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Ensure we were passed a host argument # Ensure we were passed a host argument

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -ex set -ex
sudo chcon -t httpd_sys_content_t $1 -R sudo chcon -t httpd_sys_content_t $1 -R

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script will do the work needed to configure Gnome Remote Desktop headlessly. # This script will do the work needed to configure Gnome Remote Desktop headlessly.
# Useful if you need RDP access to a remote machine and forgot to configure it before-hand # Useful if you need RDP access to a remote machine and forgot to configure it before-hand
set -e set -e

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Expect either a domain, or a domain and a record type # Expect either a domain, or a domain and a record type

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
ewconfig-run git pull ewconfig-run git pull

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Require an argument (linux, windows) # Require an argument (linux, windows)

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# If $EWCONFIG_ROOT is not set, error # If $EWCONFIG_ROOT is not set, error

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check for terminals in order of preference # Check for terminals in order of preference

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
python3 $(which ezlink) $@ python3 $(which ezlink) $@

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# If no arguments are given, print usage and exit # If no arguments are given, print usage and exit

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check args # Check args

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
git submodule foreach git authors | grep -v "^Entering" | python3 -c ' git submodule foreach git authors | grep -v "^Entering" | python3 -c '

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script finds every time someone makes a commit under someone else's name # This script finds every time someone makes a commit under someone else's name
# NOTE: This includes co-authoring # NOTE: This includes co-authoring
set -e set -e

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
LAST_MODIFIED_FILE="$(git rev-parse --git-dir)"/info/web/last-modified LAST_MODIFIED_FILE="$(git rev-parse --git-dir)"/info/web/last-modified

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Execute hython, passing through all arguments # Execute hython, passing through all arguments

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -ex set -ex
kxsend "CQ CQ CQ DE VA3ZZA VA3ZZA CQ CQ K" -v kxsend "CQ CQ CQ DE VA3ZZA VA3ZZA CQ CQ K" -v

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -ex set -ex
kxsend "QRL?" -v kxsend "QRL?" -v

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
docker run -v ~/.ssh:/root/.ssh:ro --rm -it $(docker build --load -q - < ~/.config/ewconfig/containers/legacy-ssh.dockerfile ) ssh $@ docker run -v ~/.ssh:/root/.ssh:ro --rm -it $(docker build --load -q - < ~/.config/ewconfig/containers/legacy-ssh.dockerfile ) ssh $@

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
lnav <(journalctl --merge --priority 0..7 --since $(date "+%Y-%m-%d") -o json -f --no-tail) lnav <(journalctl --merge --priority 0..7 --since $(date "+%Y-%m-%d") -o json -f --no-tail)

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -ex set -ex
logid -v -c ~/.config/logid/logid.cfg logid -v -c ~/.config/logid/logid.cfg

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Print each entry in $PATH on its own line # Print each entry in $PATH on its own line

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check args # Check args

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Verify a file, using the ~/.ssh/allowed_signers file # Verify a file, using the ~/.ssh/allowed_signers file
set -e set -e

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# NOTE: This is a script so that we can launch it from a gnome keybind # NOTE: This is a script so that we can launch it from a gnome keybind
set -e set -e

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
lnav <(journalctl --merge --priority 0..3 --since $(date "+%Y-%m-%d") -o json -f --no-tail | grep --line-buffered -iv "iwlwifi ") lnav <(journalctl --merge --priority 0..3 --since $(date "+%Y-%m-%d") -o json -f --no-tail | grep --line-buffered -iv "iwlwifi ")

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check args # Check args

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check args # Check args

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# We need 1 argument # We need 1 argument

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Check if we have permission to run `wg` # Check if we have permission to run `wg`

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
if [ $# != 1 ]; then if [ $# != 1 ]; then

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Fully restarts a wireguard link # Fully restarts a wireguard link
set -e set -e

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
set -e set -e
# Require at least 2 arguments # Require at least 2 arguments