Skip to content

Commit

Permalink
Use /usr/bin/env for calling bash
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed Mar 24, 2024
1 parent c55355e commit c74f696
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addSanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

# $(replace_in_file pattern file)
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

PKG_ENV_FILE="_build/shake-package-env-$(ghc --numeric-version)"
Expand Down
2 changes: 1 addition & 1 deletion distribution/build-linux-arm64-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ declare -f build_binary_docker
# docker -H ssh://root@lamdera-falkenstein-arm64-1 run \
# -v /root/compiler:/root/compiler \
# -it registry.gitlab.b-data.ch/ghc/ghc4pandoc:9.2.7 \
# /bin/bash
# /usr/bin/env bash

mkdir -p $dist

Expand Down
2 changes: 1 addition & 1 deletion distribution/common.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

export version="1.2.1"
2 changes: 1 addition & 1 deletion ext-package-cache/testCompress.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

# tar cf - . | zip backup -
Expand Down
2 changes: 1 addition & 1 deletion extra/npm/publish-all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

# The publish will fail if the package name and version combination already exists in the specified registry.
Expand Down
2 changes: 1 addition & 1 deletion package/linux/build-in-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion removeSanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

if [ "$OS" != 'Darwin' ]; then
Expand Down

0 comments on commit c74f696

Please sign in to comment.