Skip to content

Commit

Permalink
♻️(scripts) improve script portability
Browse files Browse the repository at this point in the history
Improved script portability by switching to `/usr/bin/env bash`, ensuring
better support across environments where `bash` may not be the default shell.
  • Loading branch information
lebaudantoine committed Jan 14, 2025
1 parent 3c8e3b9 commit a61b344
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/install-external-secrets.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -o errexit

CURRENT_DIR=$(pwd)
Expand Down
2 changes: 1 addition & 1 deletion bin/install-hooks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

mkdir -p "$(dirname -- "${BASH_SOURCE[0]}")/../.git/hooks/"
PRE_COMMIT_FILE="$(dirname -- "${BASH_SOURCE[0]}")/../.git/hooks/pre-commit"
Expand Down
2 changes: 1 addition & 1 deletion bin/start-kind.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

curl https://raw.githubusercontent.com/numerique-gouv/tools/refs/heads/main/kind/create_cluster.sh | bash -s -- meet
2 changes: 1 addition & 1 deletion bin/update-git-submodule.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

git submodule update --init --recursive
git submodule foreach 'git fetch origin; git checkout $(git rev-parse --abbrev-ref HEAD); git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); git submodule update --recursive; git clean -dfx'
2 changes: 1 addition & 1 deletion bin/update-keys.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

find . -name "*.enc.*" -exec sops updatekeys -y {} \;
2 changes: 1 addition & 1 deletion bin/validate-helm-configuration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
2 changes: 1 addition & 1 deletion src/helm/meet/generate-readme.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

docker image ls | grep readme-generator-for-helm
if [ "$?" -ne "0" ]; then
Expand Down

0 comments on commit a61b344

Please sign in to comment.