Skip to content

Commit

Permalink
Consistently use `#! /usr/bin/env bash' as shebang (#2308)
Browse files Browse the repository at this point in the history
This increase portability of semgrep on platforms not having bash as
/bin/bash.
  • Loading branch information
iamleot committed Dec 28, 2020
1 parent 516fe38 commit ef8ab7d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/build-wheels.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e
pip install setuptools wheel
cd semgrep && python setup.py sdist bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion scripts/osx-release.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e
brew install opam pkg-config coreutils
opam init --no-setup --bare;
Expand Down
2 changes: 1 addition & 1 deletion scripts/ubuntu-generic.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e
version="${VERSION:?Set a version to install}"
tarball=semgrep-v$version-ubuntu-16.04.tgz
Expand Down
2 changes: 1 addition & 1 deletion scripts/ubuntu-release.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
#
# Make a semgrep release for Linux x86_64.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-docker-release.sh
@@ -1,4 +1,4 @@
#!/bin/bash -e
#! /usr/bin/env bash -e
version="${GITHUB_REF/refs\/tags\//}"
version="${version:-$VERSION}"
version="${version:?Version must be set}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-osx-release.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e

echo "Loading version from file: $(cat version)"
Expand Down
2 changes: 1 addition & 1 deletion semgrep-core/cli/flags.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
#
# Use static linking if platform allows.
#
Expand Down
2 changes: 1 addition & 1 deletion semgrep-core/tests/report_test_metrics.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e
HOST="https://dashboard.semgrep.dev"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
2 changes: 1 addition & 1 deletion semgrep/tests/run-perf-tests.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

set -e
# set -x
Expand Down

0 comments on commit ef8ab7d

Please sign in to comment.