Skip to content

Commit 5988c8a

Browse files
committed
Use #!/usr/bin/env bash in all scripts
1 parent 1baf35c commit 5988c8a

File tree

17 files changed

+32
-19
lines changed

17 files changed

+32
-19
lines changed

.evergreen/build_example_projects.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

.evergreen/build_snapshot_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
set -o errexit
44

.evergreen/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Runs cmake and compiles the standard build targets (all, install, examples). Any arguments passed
44
# to this script will be forwarded on as flags passed to cmake.

.evergreen/connect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -o errexit
44
set -o pipefail

.evergreen/find_cmake.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
2+
23
set -o errexit # Exit the script with error if any of the commands fail
34

45
find_cmake ()

.evergreen/uninstall_check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
2+
23
set -o errexit # Exit the script with error if any of the commands fail
34

45
BUILD_DIR=$(pwd)/build

etc/calc_release_version_selftest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
#
23
# calc_release_version_selftest.sh is used to test output of calc_release_version.py.
34
# run with:
45
# cd etc

etc/generate-uninstall.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set prefix=%prefix:"=%
4646
echo.@echo off
4747
echo.
4848
echo.REM MongoDB C++ Driver uninstall program, generated with CMake
49-
echo.
49+
echo.REM
5050
echo.REM Copyright 2009-present MongoDB, Inc.
5151
echo.REM
5252
echo.REM Licensed under the Apache License, Version 2.0 (the "License");

etc/generate-uninstall.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
# Copyright 2009-present MongoDB, Inc.
44
#
@@ -60,9 +60,10 @@ if [ "${DESTDIR}" ]; then
6060
fi
6161

6262

63-
printf "#!/bin/sh\n"
63+
printf "#!/usr/bin/env bash\n"
64+
printf "#\n"
6465
printf "# MongoDB C++ Driver uninstall program, generated with CMake"
65-
printf "\n"
66+
printf "#\n"
6667
printf "# Copyright 2009-present MongoDB, Inc.\n"
6768
printf "#\n"
6869
printf "# Licensed under the Apache License, Version 2.0 (the \"License\");\n"

examples/projects/bsoncxx/cmake/shared/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/bsoncxx/cmake/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/bsoncxx/pkg-config/shared/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/bsoncxx/pkg-config/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/mongocxx/cmake/shared/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/mongocxx/cmake/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/mongocxx/pkg-config/shared/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

examples/projects/mongocxx/pkg-config/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -o errexit
34
set -o pipefail
45

0 commit comments

Comments
 (0)