Skip to content

Commit

Permalink
add "# shellcheck enable=" to files validated
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrargyrum committed Jul 12, 2023
1 parent 869fb1c commit 38663b7
Show file tree
Hide file tree
Showing 36 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions altlines/altlines
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

if [ -t 1 ]
then
Expand Down
1 change: 1 addition & 0 deletions cheapthrottle/cheapthrottle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

# typical usage: cheapthrottle PID

Expand Down
1 change: 1 addition & 0 deletions crc/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions first-avail-command/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -eu
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions flatten-json/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -eu
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions fonts2png/fonts2png
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: WTFPL
# shellcheck enable=
# 2012-05-12

text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Expand Down
1 change: 1 addition & 0 deletions gen-indexhtml/gen-indexhtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

die () {
ex=$1
Expand Down
1 change: 1 addition & 0 deletions git/git-adapt-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage() {
cat <<-EOF
Expand Down
3 changes: 2 additions & 1 deletion git/git-amend-author
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

if [ $# -ne 2 ]
then
cat >&2 <<- EOF
usage: $0 <NAME> <EMAIL>
Amends the last commit and change both author and committer names to
NAME and emails to EMAIL. Do not touch the author timestamp.
NAME and emails to EMAIL. Does not touch the author timestamp.
EOF
exit 64 # EX_USAGE
fi
Expand Down
1 change: 1 addition & 0 deletions git/git-cherry-pick-on-path
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions git/git-combine-remotes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

if [ $# -lt 2 ]
then
Expand Down
1 change: 1 addition & 0 deletions git/git-commit-with-mtime
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions git/git-copy-files-from
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions git/git-midnight
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

# like git-commit(1) but fake the commit date to use midnight today
# useful for privacy reasons
Expand Down
1 change: 1 addition & 0 deletions git/git-recpbranch
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

# if you have
# master --- A --- featureA
Expand Down
1 change: 1 addition & 0 deletions group-files-by-mtime/group-files-by-mtime
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=
# requires GNU find(1) for "-printf"

usage () {
Expand Down
1 change: 1 addition & 0 deletions group-lines/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions headset-bluez/headset-bluez
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=
# Enable a bluetooth headset and out or in/out mode.

find_bluez () {
Expand Down
1 change: 1 addition & 0 deletions hexgen/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions ini2json/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions json-elide-strings/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -eu
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions log-snippet/log-snippet.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions multiman/multiman
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -eu
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

printlines () {
printf "%s\n" "$@"
Expand Down
1 change: 1 addition & 0 deletions nested-jq/nested-jq
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -e
# shellcheck enable=

nested () {
ex=$1
Expand Down
1 change: 1 addition & 0 deletions pass-ls-entries/pass-ls-entries
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=
# list pass(1) entries in find(1) format, not tree(1) format
# example:
#
Expand Down
1 change: 1 addition & 0 deletions pdf-watermark/pdf-watermark
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions pvrun/pvrun
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down
1 change: 1 addition & 0 deletions screen-msg/screen-set-hardstatus
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

printf "\033_%s\033\\" "$*"
# or:
Expand Down
1 change: 1 addition & 0 deletions screen-msg/screen-set-transient
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

printf "\033^%s\033\\" "$*"
1 change: 1 addition & 0 deletions show-args/show-args
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=
# usage: show-args ARGUMENTS...
# just show args, one per line
# example:
Expand Down
1 change: 1 addition & 0 deletions sort-with-numbers/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions ssh-tools/ssh-fingerprint-current-host
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

for pub in /etc/ssh/*.pub
do
Expand Down
1 change: 1 addition & 0 deletions ssh-tools/ssh-known-fingerprint
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

if [ $# -lt 1 ] || [ $# -gt 2 ]
then
Expand Down
1 change: 1 addition & 0 deletions stfu/stfu
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -eu
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

# Fire and forget a command, run in background, discard stdout/stderr.
# Accept "-l" for still logging output to a temp file.
Expand Down
1 change: 1 addition & 0 deletions toml2json/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh -eu
# shellcheck enable=

cd "$(dirname "$0")"

Expand Down
1 change: 1 addition & 0 deletions zeropipe/zeropipe
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e
# SPDX-License-Identifier: WTFPL
# shellcheck enable=

usage () {
cat <<- EOF
Expand Down

0 comments on commit 38663b7

Please sign in to comment.