diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2022-02-16 20:34:47 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2022-02-16 20:34:47 +0530 |
commit | 1beedb2b0ac360ac5f819045789cd200a9fcc1f8 (patch) | |
tree | 18694e18e92343dc7ed8651c5beca759ee3dcc29 /tessen | |
parent | 85218f9ab996102358e14cef9c4dbab0d1c6b1c7 (diff) |
refactor: use /usr/bin/env bash
It seems there are some distros like NixOS which do not have `/bin/bash`
in an effort to be stateless, as mentioned in this PR
https://github.com/ayushnix/tessen/pull/15
I'm aware that BSDs probably don't have bash at that location either.
I'll go ahead and change the default shebang to use `env` to find bash
but I also intend to provide an optional patch to revert the shebang
back to `#!/bin/bash` and hardcode the `$PATH` to root owned directories
in `/usr`.
Diffstat (limited to 'tessen')
-rwxr-xr-x | tessen | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2021 Ayush Agarwal <ayush at fastmail dot in> # |