Skip to content

Commit

Permalink
added #/usr/bin/env bash
Browse files Browse the repository at this point in the history
  • Loading branch information
jmscott committed Jan 19, 2024
1 parent 722ca38 commit fd6840f
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 24 deletions.
1 change: 1 addition & 0 deletions bash_login.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
#
# Synopsis:
# Overrideable .bash_login for jmscott interactive bash work environment.
Expand Down
2 changes: 1 addition & 1 deletion cron-run-once
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Chatty, conditional exec of a cron job monitored by file run/<proc>.pid
Expand Down
2 changes: 1 addition & 1 deletion duration-english.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Synopsis:
* Translate integer duration in seconds into english, similar to golang.
* Usage:
* #!/bin/bash
* #!/usr/bin/env bash
*
* # on mac osx
* DURATION_SEC=$(expr $(date +%s) - $(date -v -1d +%s))
Expand Down
2 changes: 1 addition & 1 deletion elapsed-english
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!usr/bin/env bash
#
# Synopsis:
# Elapsed time since "now", written in english, suitable for scripts.
Expand Down
2 changes: 1 addition & 1 deletion exec-logoff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# exec a command when $USER logs off
Expand Down
2 changes: 1 addition & 1 deletion furl/furl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Alert the masses on transitions in exit codes of curl requests.
Expand Down
2 changes: 1 addition & 1 deletion isjson
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Is a file or standard input well formed json?
Expand Down
2 changes: 1 addition & 1 deletion istext
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# List UTF-8 text compliant files path in either argv or standard input.
Expand Down
2 changes: 2 additions & 0 deletions jmscott.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ endif
# Setting SHELL forces gmake to disable optimizing of single line productions,
# forcing make to honor $PATH. Also, overrides ubuntu20 legacy /bin/sh
# (unlike fedora).
#
# Note: anyway to set "/usr/bin/env bash" as SHELL?

SHELL=/bin/bash

Expand Down
2 changes: 1 addition & 1 deletion launchctl-kick
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash
#
# Synopsis:
# Simple frontend for OSX launchctl to stop/unload/load/list services.
Expand Down
2 changes: 1 addition & 1 deletion launchctl-load
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Simple frontend for OSX launchctl to load services not in LaunchDaemons/
Expand Down
2 changes: 1 addition & 1 deletion launchctl-unload
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Simple frontend for OSX launchctl to unload services.
Expand Down
2 changes: 1 addition & 1 deletion launchd-log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Script to help poor logging of launchd and missing docs for SIP.
Expand Down
2 changes: 1 addition & 1 deletion pdf-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Merge pdf files into single document using pdfbox.apache.org classes
Expand Down
2 changes: 1 addition & 1 deletion pg2pg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Upgrade a postgres cluster via either pg_upgrade or pg_dump
Expand Down
2 changes: 1 addition & 1 deletion pg_dump-Dow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

help() { cat <<'END'
Expand Down
3 changes: 2 additions & 1 deletion pgsnap/pgsnap
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash

HELP=$(cat <<'END'
Synopsis:
Expand Down
2 changes: 1 addition & 1 deletion pgsnap/pgsnap-janitor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Clear out various stale log and spool files produced by pgsnap program.
Expand Down
2 changes: 1 addition & 1 deletion ridiff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Synchronize a local and remote text file using idiff and rsync.
Expand Down
2 changes: 1 addition & 1 deletion rsync-fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# rsync an entire file system to <sunk-root>/host/$(hostname)/root/<mount>
Expand Down
2 changes: 1 addition & 1 deletion ssh-host
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# ssh into a host derived from symbolic link to ssh-host
Expand Down
2 changes: 1 addition & 1 deletion strswap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
help()
{
cat <<END
Expand Down
2 changes: 1 addition & 1 deletion svn-commit-notify
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Notify users of an svn commit
Expand Down
2 changes: 1 addition & 1 deletion www/cat-http-POST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Assemble a raw apache2 POST suitable for debugging or mime decoding
Expand Down
2 changes: 1 addition & 1 deletion www/make-dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Push site code to $HOME/opt/lct, called in Makefile recipe 'dev'.
Expand Down
2 changes: 1 addition & 1 deletion zap-proc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synopsis:
# Safe, chatty zap of process using variations of pkill.
Expand Down

0 comments on commit fd6840f

Please sign in to comment.