From 1beedb2b0ac360ac5f819045789cd200a9fcc1f8 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Wed, 16 Feb 2022 20:34:47 +0530 Subject: 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`. --- tessen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tessen b/tessen index 855694b..24b70b6 100755 --- 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 # -- cgit v1.2.3