Skip to content

Commit 2a0a677

Browse files
authored
Use more portable shebangs with /usr/bin/env bash (eth-cscs#292)
1 parent dba925f commit 2a0a677

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ The post-install script is templated using Jinja, with the following variables a
566566
The use of Jinja templates is demonstrated in the following example of a bash script that generates an activation script that adds the installation path of GROMACS to the system PATH:
567567

568568
```bash title="post-install script that generates a simple activation script."
569-
#!/bin/bash
569+
#!/usr/bin/env bash
570570
571571
gmx_path=$(spack -C {{ env.config }} location -i gromacs)/bin
572572
echo "export PATH=$gmx_path:$PATH" >> {{ env.mount }}/activate.sh

stackinator/etc/bwrap-mutable-root.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
args=()
33
shopt -s dotglob
44
for d in /*; do

stackinator/etc/envvars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
import argparse
44
import json

unittests/data/arbor-uenv/meta/configure.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"-c",
2626
"./cache.yaml"
2727
],
28-
"python": "/usr/bin/python3",
28+
"python": "/usr/bin/env python3",
2929
"version": "4.1.0-dev"
3030
},
3131
"time": "20240611 12:06:38"

unittests/recipes/host-recipe/post-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo "====================================="
44
echo "===== post install hook ====="

unittests/recipes/host-recipe/pre-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo "====================================="
44
echo "===== pre install hook ====="

unittests/test-envvars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
root=$(pwd)
44
input_path=${root}/data/arbor-uenv

unittests/test_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
import pathlib
44
from textwrap import dedent

0 commit comments

Comments
 (0)