summaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2022-02-16 20:34:47 +0530
committerAyush Agarwal <ayush@fastmail.in>2022-02-16 20:34:47 +0530
commit1beedb2b0ac360ac5f819045789cd200a9fcc1f8 (patch)
tree18694e18e92343dc7ed8651c5beca759ee3dcc29 /tessen
parent85218f9ab996102358e14cef9c4dbab0d1c6b1c7 (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-xtessen2
1 files changed, 1 insertions, 1 deletions
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 <ayush at fastmail dot in>
#