Skip to content

Commit

Permalink
NUT shell scripts: use a better portable shebang for bash interpreter…
Browse files Browse the repository at this point in the history
… discovery

NOTE: Some scripts require BASH syntax; maybe not all of them do (did not revise at this time)

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Feb 28, 2024
1 parent 7123ac6 commit f713292
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion indent.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Filter NUT C source file style to conform to recommendations of
# https://www.networkupstools.org/docs/developer-guide.chunked/ar01s03.html#_coding_style
Expand Down
2 changes: 1 addition & 1 deletion scripts/HP-UX/makedepot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -x

Expand Down
2 changes: 1 addition & 1 deletion scripts/Windows/build-mingw-nut.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# NOTE: bash syntax (non-POSIX script) is used below!
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/make_package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# make_package.sh
# Copyright (c) 2013-2015, by Eaton (R) Corporation. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion scripts/subdriver/gen-snmp-subdriver.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# an auxiliary script to produce a "stub" snmp-ups subdriver from
# SNMP data from a real agent or from dump files
Expand Down
2 changes: 1 addition & 1 deletion scripts/subdriver/gen-usbhid-subdriver.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# an auxiliary script to produce a "stub" usbhid-ups subdriver from
# the output of
Expand Down

0 comments on commit f713292

Please sign in to comment.