Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch script shebangs to /usr/bin/env #577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/account-ids-by-name.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Prints a JSON dictionary that maps account names to account ids for the list
# of accounts given by the terraform backend files of the form
# <ACCOUNT_NAME>.<ACCOUNT_ID>.s3.tfbackend in the infra/accounts directory.
Expand Down
2 changes: 1 addition & 1 deletion bin/check-database-roles.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Script that invokes the database role-manager AWS Lambda function to check
# that the Postgres users were configured properly.
Expand Down
2 changes: 1 addition & 1 deletion bin/check-github-actions-auth.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

GITHUB_ACTIONS_ROLE=$1
Expand Down
2 changes: 1 addition & 1 deletion bin/configure-monitoring-secret.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# This script creates SSM parameter for storing integration URL for incident management
# services. Script creates new SSM attribute or updates existing.
Expand Down
2 changes: 1 addition & 1 deletion bin/create-or-update-database-roles.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Script that invokes the database role-manager AWS Lambda function to create
# or update the Postgres user roles for a particular environment.
Expand Down
2 changes: 1 addition & 1 deletion bin/create-tfbackend.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# This script creates a terraform backend config file for a terraform module.
# It is not meant to be used directly. Instead, it is called by other scripts
Expand Down
2 changes: 1 addition & 1 deletion bin/current-account-alias.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Print the current AWS account alias
set -euo pipefail
echo -n "$(aws iam list-account-aliases --query "AccountAliases" --max-items 1 --output text)"
2 changes: 1 addition & 1 deletion bin/current-account-config-name.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Print the config name for the current AWS account
# Do this by getting the current account and searching for a file in
# infra/accounts that matches "<account name>.<account id>.s3.tfbackend".
Expand Down
2 changes: 1 addition & 1 deletion bin/current-account-id.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Print the current AWS account id
set -euo pipefail
echo -n "$(aws sts get-caller-identity --query "Account" --output text)"
2 changes: 1 addition & 1 deletion bin/current-region.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Print the current AWS region
set -euo pipefail
echo -n "$(aws configure list | grep region | awk '{print $2}')"
2 changes: 1 addition & 1 deletion bin/deploy-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

APP_NAME=$1
Expand Down
2 changes: 1 addition & 1 deletion bin/lint-markdown.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# To make things simpler, ensure we're in the repo's root directory (one directory up) before
# running, regardless where the user is when invoking this script.
Expand Down
2 changes: 1 addition & 1 deletion bin/publish-release.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 bin/run-command.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Run an application command using the application image
#
Expand Down
2 changes: 1 addition & 1 deletion bin/run-database-migrations.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Run database migrations
# 1. Update the application's task definition with the latest build, but
Expand Down
2 changes: 1 addition & 1 deletion bin/set-up-current-account.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# This script sets up the terraform backend for the AWS account that you are
# currently authenticated into and creates the terraform backend config file.
Expand Down
2 changes: 1 addition & 1 deletion bin/terraform-apply.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Convenience script for running terraform apply for the specified module and configuration name.
# The configuration name is used to determine which .tfvars file to use for the -var-file
Expand Down
2 changes: 1 addition & 1 deletion bin/terraform-init-and-apply.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Convenience script for running terraform init followed by terraform apply
# See ./bin/terraform-init.sh and ./bin/terraform-apply.sh for more details.
Expand Down
2 changes: 1 addition & 1 deletion bin/terraform-init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Convenience script for running terraform init for the specified module and configuration name.
# The configuration name is used to determine which .tfbackend file to use for the -backend-config
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/destroy-account.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Do not use this script on your project. This script is only used for testing
# the platform bootstrap process.
set -euxo pipefail
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/destroy-app-build-repository.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Do not use this script on your project. This script is only used for testing
# the platform bootstrap process.
set -euxo pipefail
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/destroy-app-service.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Do not use this script on your project. This script is only used for testing
# the platform bootstrap process.
set -euxo pipefail
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/destroy-network.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Do not use this script on your project. This script is only used for testing
# the platform bootstrap process.
set -euxo pipefail
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/download-and-install-template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

echo "Fetch latest version of template-infra"
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/install-template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This script installs the template-infra to your project. Run
# This script from your project's root directory.
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/set-up-project.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

PROJECT_NAME=$1
Expand Down
2 changes: 1 addition & 1 deletion template-only-bin/update-template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# This script updates template-infra in your project. Run
# This script from your project's root directory.
Expand Down
Loading