Skip to content

Commit

Permalink
fix: change shebangs and makefile from /bin/bash to /usr/bin/env bash (
Browse files Browse the repository at this point in the history
…#3597)

* makefile fix

Signed-off-by: nxy7 <[email protected]>

* shebangs changed to /usr/bin/env bash

Signed-off-by: nxy7 <[email protected]>

---------

Signed-off-by: nxy7 <[email protected]>
  • Loading branch information
nxy7 authored Oct 27, 2023
1 parent 6a0a914 commit 1343bbb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SHELL=/bin/bash -o pipefail
SHELL=/usr/bin/env bash -o pipefail

# EXECUTABLES = docker-compose docker node npm go
# K := $(foreach exec,$(EXECUTABLES),\
Expand Down
4 changes: 2 additions & 2 deletions script/add-down-migrations.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script adds empty down migrations for any migration that misses them.
# Adding them is necessary because if the down migration is missing, the
Expand All @@ -17,4 +17,4 @@ for f in $(find . -name "*.up.sql"); do
echo "Adding empty down migration for $f"
touch $dir/$migra_name.down.sql
fi
done
done
2 changes: 1 addition & 1 deletion script/debug-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

FILE_CHANGE_LOG_FILE=/tmp/changes.log
SERVICE_ARGS="$@"
Expand Down
2 changes: 1 addition & 1 deletion script/test-envs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash

export TEST_DATABASE_MYSQL="mysql://root:secret@(127.0.0.1:3444)/mysql?parseTime=true&multiStatements=true"
export TEST_DATABASE_POSTGRESQL="postgres://postgres:[email protected]:3445/postgres?sslmode=disable"
Expand Down
2 changes: 1 addition & 1 deletion script/testenv.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

docker rm -f kratos_test_database_mysql kratos_test_database_postgres kratos_test_database_cockroach kratos_test_hydra || true
docker run --platform linux/amd64 --name kratos_test_database_mysql -p 3444:3306 -e MYSQL_ROOT_PASSWORD=secret -d mysql:8.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Running Ory Kratos E2E Tests..."
echo ""
Expand Down

0 comments on commit 1343bbb

Please sign in to comment.