Skip to content

fix: Use /usr/bin/env in bash shebang #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/a2l
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# print each arguments on one line colorfully.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/ap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# convert to Absolute Path.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Run command and put output to system clipper.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/coat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# cat lines colorfully. coat means *CO*lorful c*AT*.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/cp-into-docker-run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Copy the command into docker container and run the command in container.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/echo-args
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# print arguments in human and debugging friendly style.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/find-in-jars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Find files in the jar files under specified directory, search jar files recursively(include subdirectory).
#
Expand Down
2 changes: 1 addition & 1 deletion bin/rp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# convert to Relative Path.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/show-busy-java-threads
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Find out the highest cpu consumed threads of java processes, and print the stack of these threads.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/taoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# tac lines colorfully. taoc means coat(*CO*lorful c*AT*) in reverse(last line first).
#
Expand Down
2 changes: 1 addition & 1 deletion bin/tcp-connection-state-counter
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# show count of tcp connection stat.
#
Expand Down
2 changes: 1 addition & 1 deletion bin/uq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Filter lines from INPUT (or standard input), writing to OUTPUT (or standard output).
# same as `uniq` command in core utils,
Expand Down
2 changes: 1 addition & 1 deletion bin/xpf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Open file in file explorer, file is selected.
# same as xpl --selected [file]...
Expand Down
2 changes: 1 addition & 1 deletion bin/xpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# Open file in file explorer.
#
Expand Down
2 changes: 1 addition & 1 deletion legacy-bin/cp-svn-url
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# copy the svn remote url of current svn directory.
#
Expand Down
2 changes: 1 addition & 1 deletion legacy-bin/svn-merge-stop-on-copy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# svn merge commit between version when source branch copy(--stop-on-copy)
# and head version of source branch.
Expand Down
2 changes: 1 addition & 1 deletion legacy-bin/swtrunk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# switch svn work directory to trunk.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/console-text-color-themes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# show all console text color themes.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/parseOpts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# @Function
# parse options lib, support multiple values for one option.
#
Expand Down
2 changes: 1 addition & 1 deletion test-cases/bump-scripts-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eEuo pipefail

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion test-cases/integration-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eEuo pipefail

READLINK_CMD=readlink
Expand Down
2 changes: 1 addition & 1 deletion test-cases/lint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eEuo pipefail

# cd to the root of the project
Expand Down
2 changes: 1 addition & 1 deletion test-cases/my_unit_test_lib.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# unit test lib

#################################################
Expand Down
2 changes: 1 addition & 1 deletion test-cases/parseOpts_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

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

Expand Down
2 changes: 1 addition & 1 deletion test-cases/self-installer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if command -v svn &>/dev/null; then
[ ! -d "/tmp/useful-scripts-$USER" ] &&
Expand Down
2 changes: 1 addition & 1 deletion test-cases/uq_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eEuo pipefail

READLINK_CMD=readlink
Expand Down