Skip to content

Commit

Permalink
dev: use env for executable shebangs (#1408)
Browse files Browse the repository at this point in the history
This is just a minor fix to let the scripts run in more exotic
environments, i.e., NixOS.
  • Loading branch information
atalii authored Jul 24, 2023
1 parent 2c4e5a3 commit 0476f41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Import reusable bits
pushd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) > /dev/null
Expand Down
4 changes: 2 additions & 2 deletions dev/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env

function guess_OS() {
# Returns one of the values needed in ALIRE_OS, using environment variables
Expand Down Expand Up @@ -48,4 +48,4 @@ function get_OS() {
guess_OS
;;
esac
}
}
2 changes: 1 addition & 1 deletion dev/unused.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env

# Import reusable bits
pushd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) > /dev/null
Expand Down

0 comments on commit 0476f41

Please sign in to comment.