Skip to content

Commit 5afbe64

Browse files
authored
Fix shell scripts (#592)
* Change "/bin/bash" with "/usr/bin/env bash" * Add comment to.changes/init.sh --------- Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
1 parent 25015a5 commit 5afbe64

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

.changes/init.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# This script is used at the start of a new release cycle, to
4+
# initialize the CHANGELOG
5+
# Run at the top of the repository, as
6+
# $ .changes/init.sh VERSION
7+
# (without the initial 'v')
8+
39
VERSION=$1
410

511
if [ -z "$VERSION" ]

scripts/changelog-links.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script rewrites [GH-nnnn]-style references in the CHANGELOG.md file to
44
# be Markdown links to the given github issues.

scripts/copyright_check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# This script will find code files that don't have a copyright notice
33
# or the ones with an outdated copyright.
44
#

scripts/get_token.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# This script will connect to the vCD using username and password,
33
# and show the headers that contain a bearer or authorization token.
44
#

scripts/gosec.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
scripts_dir=$(dirname $0)
33
cd $scripts_dir
44
scripts_dir=$PWD

scripts/staticcheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
scripts_dir=$(dirname $0)
33
cd $scripts_dir
44
scripts_dir=$PWD

0 commit comments

Comments
 (0)