Skip to content

Commit 68b38e7

Browse files
hyperupcalloldratlee
authored andcommitted
fix: find bash with /usr/bin/env in shebang (#119)
1 parent eb47955 commit 68b38e7

26 files changed

+26
-26
lines changed

bin/a2l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# print each arguments on one line colorfully.
44
#

bin/ap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# convert to Absolute Path.
44
#

bin/c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Run command and put output to system clipper.
44
#

bin/coat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# cat lines colorfully. coat means *CO*lorful c*AT*.
44
#

bin/cp-into-docker-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Copy the command into docker container and run the command in container.
44
#

bin/echo-args

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# print arguments in human and debugging friendly style.
44
#

bin/find-in-jars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Find files in the jar files under specified directory, search jar files recursively(include subdirectory).
44
#

bin/rp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# convert to Relative Path.
44
#

bin/show-busy-java-threads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Find out the highest cpu consumed threads of java processes, and print the stack of these threads.
44
#

bin/taoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# tac lines colorfully. taoc means coat(*CO*lorful c*AT*) in reverse(last line first).
44
#

bin/tcp-connection-state-counter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# show count of tcp connection stat.
44
#

bin/uq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Filter lines from INPUT (or standard input), writing to OUTPUT (or standard output).
44
# same as `uniq` command in core utils,

bin/xpf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Open file in file explorer, file is selected.
44
# same as xpl --selected [file]...

bin/xpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# Open file in file explorer.
44
#

legacy-bin/cp-svn-url

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# copy the svn remote url of current svn directory.
44
#

legacy-bin/svn-merge-stop-on-copy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# svn merge commit between version when source branch copy(--stop-on-copy)
44
# and head version of source branch.

legacy-bin/swtrunk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# switch svn work directory to trunk.
44
#

lib/console-text-color-themes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# show all console text color themes.
44
#

lib/parseOpts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# @Function
33
# parse options lib, support multiple values for one option.
44
#

test-cases/bump-scripts-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eEuo pipefail
33

44
################################################################################

test-cases/integration-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eEuo pipefail
33

44
READLINK_CMD=readlink

test-cases/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eEuo pipefail
33

44
# cd to the root of the project

test-cases/my_unit_test_lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# unit test lib
33

44
#################################################

test-cases/parseOpts_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
BASE="$(dirname -- "${BASH_SOURCE[0]}")"
44

test-cases/self-installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if command -v svn &>/dev/null; then
44
[ ! -d "/tmp/useful-scripts-$USER" ] &&

test-cases/uq_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eEuo pipefail
33

44
READLINK_CMD=readlink

0 commit comments

Comments
 (0)