From: Ilya Katsnelson Date: Thu, 8 Sep 2022 09:04:05 +0000 (+0300) Subject: tools/bc: use more compatible shebang X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=21dfd7289b72fefd8d97c89a08ad7c3e0fb791af;p=openwrt%2Fstaging%2Fstintel.git tools/bc: use more compatible shebang 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 --- diff --git a/tools/bc/patches/002-fix-libmath.patch b/tools/bc/patches/002-fix-libmath.patch index 1a8439542d..f2212f0953 100644 --- a/tools/bc/patches/002-fix-libmath.patch +++ b/tools/bc/patches/002-fix-libmath.patch @@ -10,7 +10,7 @@ -w -q -EOS-EOS -+#! /bin/bash ++#!/usr/bin/env bash +sed -e '1 s/^/{"/' \ + -e 's/$/",/' \ + -e '2,$ s/^/"/' \