Skip to content

Commit

Permalink
[util]: Portable shebang
Browse files Browse the repository at this point in the history
Problem:

/bin/bash is not available on non-FHS distros, such as NixOS

Solution:

Replace /bin/bash with /usr/bin/env bash

Result:

Closes #314

Differential Revision: https://phabricator.twitter.biz/D1107606
  • Loading branch information
andreoss authored and jenkins committed Oct 31, 2023
1 parent 17e76b3 commit 0571f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pushsite.bash
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 sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -eo pipefail

Expand Down

0 comments on commit 0571f97

Please sign in to comment.