Switch to using env to find bash
This commit is contained in:
parent
6c7eff0323
commit
3f60cafb2c
@ -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)"
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
gnome-terminal -- tinker
|
gnome-terminal -- tinker
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd ~ && gnome-terminal
|
cd ~ && gnome-terminal
|
@ -1,3 +1,3 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
sleep 1
|
sleep 1
|
||||||
exit 1
|
exit 1
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
WEBSERVER_PATH=$HOME/www
|
WEBSERVER_PATH=$HOME/www
|
||||||
|
@ -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
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ewconfig-run git pull
|
ewconfig-run git pull
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Require an argument (linux, windows)
|
# Require an argument (linux, windows)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
python3 $(which ezlink) $@
|
python3 $(which ezlink) $@
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check args
|
# Check args
|
||||||
|
@ -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 '
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
kxsend "QRL?" -v
|
kxsend "QRL?" -v
|
||||||
|
@ -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 $@
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check args
|
# Check args
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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 ")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check args
|
# Check args
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check args
|
# Check args
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# We need 1 argument
|
# We need 1 argument
|
||||||
|
@ -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`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ $# != 1 ]; then
|
if [ $# != 1 ]; then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
# Fully restarts a wireguard link
|
# Fully restarts a wireguard link
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Require at least 2 arguments
|
# Require at least 2 arguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user