tools/bc: use more compatible shebang
authorIlya Katsnelson <me@0upti.me>
Thu, 8 Sep 2022 09:04:05 +0000 (12:04 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 13 Sep 2022 22:06:15 +0000 (00:06 +0200)
Update the existing patch to use a shebang that works on systems that
don't have a /bin/bash, e.g. NixOS or GuixSD.

Signed-off-by: Ilya Katsnelson <me@0upti.me>
tools/bc/patches/002-fix-libmath.patch

index 1a8439542da0a1db751578e4c041dbb9dd4c7979..f2212f0953fdb827b8480722634b501162d3b1b9 100644 (file)
@@ -10,7 +10,7 @@
 -w
 -q
 -EOS-EOS
-+#! /bin/bash
++#!/usr/bin/env bash
 +sed -e '1   s/^/{"/' \
 +    -e     's/$/",/' \
 +    -e '2,$ s/^/"/'  \