[openwrt/openwrt] tools/bc: use more compatible shebang
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 13 15:06:23 PDT 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/21dfd7289b72fefd8d97c89a08ad7c3e0fb791af
commit 21dfd7289b72fefd8d97c89a08ad7c3e0fb791af
Author: Ilya Katsnelson <me at 0upti.me>
AuthorDate: Thu Sep 8 12:04:05 2022 +0300
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 <me at 0upti.me>
---
tools/bc/patches/002-fix-libmath.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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/^/"/' \
More information about the lede-commits
mailing list