Skip to content

Commit

Permalink
MISC: *.sh: use '#!/usr/bin/env bash' for bash scripts, fixes #17
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Sep 21, 2023
1 parent 22cf347 commit 16d474e
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion doc/poxy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down
2 changes: 1 addition & 1 deletion images/anklangicons.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail
# set -x
Expand Down
2 changes: 1 addition & 1 deletion misc/checkinsertions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down
2 changes: 1 addition & 1 deletion misc/cirun
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail && SCRIPTNAME=${0##*/} && die() { [ -z "$*" ] || echo "$SCRIPTNAME: $*" >&2; exit 127 ; }

Expand Down
2 changes: 1 addition & 1 deletion misc/colorize.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail

Expand Down
2 changes: 1 addition & 1 deletion misc/mkAppImage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down
2 changes: 1 addition & 1 deletion misc/mkassets.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail -x && SCRIPTNAME=${0##*/} && die() { [ -z "$*" ] || echo "$SCRIPTNAME: $*" >&2; exit 127 ; }

Expand Down
6 changes: 3 additions & 3 deletions misc/mkdeb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down Expand Up @@ -99,7 +99,7 @@ gzip -9 $DEBCHANGELOG

# DEBIAN/postinst
cat <<\__EOF |
#!/bin/bash
#!/usr/bin/env bash
set -e -o pipefail
# Setcap cap_sys_nice to allow renincing for low latency processing
Expand Down Expand Up @@ -127,7 +127,7 @@ chmod +x $DEBIAN/postinst
# DEBIAN/postrm
# Needed because Debian does not provide triggers for /usr/local/
cat <<\__EOF |
#!/bin/bash
#!/usr/bin/env bash
set -e -o pipefail
which update-mime-database >/dev/null 2>&1 && {
mkdir -p @PREFIXDIR@/share/mime/packages # required by update-mime-database
Expand Down
2 changes: 1 addition & 1 deletion misc/mknews.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down
2 changes: 1 addition & 1 deletion misc/publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail && SCRIPTNAME=${0##*/} && die() { [ -z "$*" ] || echo "$SCRIPTNAME: $*" >&2; exit 127 ; }

Expand Down
2 changes: 1 addition & 1 deletion rand/hotspots.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail
#set -x
Expand Down
2 changes: 1 addition & 1 deletion x11test/replay.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down
2 changes: 1 addition & 1 deletion x11test/x11rec.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
set -Eeuo pipefail #-x

Expand Down

0 comments on commit 16d474e

Please sign in to comment.