commit 1beedb2b0ac360ac5f819045789cd200a9fcc1f8
parent 85218f9ab996102358e14cef9c4dbab0d1c6b1c7
Author: Ayush Agarwal <ayush@fastmail.in>
Date: Wed, 16 Feb 2022 20:34:47 +0530
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tessen b/tessen
@@ -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>
#