summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Katsnelson <me@0upti.me>2022-09-08 12:04:05 +0300
committerChristian Marangi <ansuelsmth@gmail.com>2022-09-14 00:06:15 +0200
commit21dfd7289b72fefd8d97c89a08ad7c3e0fb791af (patch)
treeb8be02c742fcfcf7ded5e4bce1ec1744256b3101
parentc3e4a0d99b972b91dd65f535365b9b71fcb541ae (diff)
downloadopenwrt-21dfd7289b72fefd8d97c89a08ad7c3e0fb791af.tar.gz
openwrt-21dfd7289b72fefd8d97c89a08ad7c3e0fb791af.tar.bz2
openwrt-21dfd7289b72fefd8d97c89a08ad7c3e0fb791af.zip
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@0upti.me>
-rw-r--r--tools/bc/patches/002-fix-libmath.patch2
1 files changed, 1 insertions, 1 deletions
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/^/"/' \