Skip to content

Commit

Permalink
[finatra]: 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 #589

Differential Revision: https://phabricator.twitter.biz/D1107602
  • Loading branch information
andreoss authored and jenkins committed Oct 31, 2023
1 parent 515b1b3 commit 6adbdf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/benchmark/local_benchmark.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

##
# Run from the top-level finatra project directory:
Expand Down
2 changes: 1 addition & 1 deletion pushsite.bash
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

savedir=$(pwd)
Expand Down
2 changes: 1 addition & 1 deletion sbt
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -eo pipefail

Expand Down

0 comments on commit 6adbdf4

Please sign in to comment.