Skip to content

Commit 7ebb92c

Browse files
authored
chore: change shebang in link_all.sh to be portable (#33520)
### Reason for this change Current shebang in `link_all.sh` is `!#/bin/bash`, which does not work if the `bash` binary is not present in `/bin` (such is the case on e.g. NixOS). ### Description of changes Change the sheband to `!#/usr/bin/env bash`, so that bash is executed from wherever it's present, not necessarily `/bin/bash`. ### Description of how you validated changes The current script fails on NixOS for me. The script with the updated shebang suceeds. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 07f0fe3 commit 7ebb92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

link-all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# creates symlinks under node_modules for all packages in this repo
33
# can be used to work against this code base.
44
set -euo pipefail

0 commit comments

Comments
 (0)