summaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorGeorgi Valkov <gvalkov@gmail.com>2022-09-14 10:26:03 +0300
committerNick Hainke <vincent@systemli.org>2024-05-14 00:27:12 +0200
commiteb1b0220439262d6fff2a2e2180b87db27390905 (patch)
treea40a015e35c0115cc540f30804c24fa5f7cdace5 /package/system
parent1a544dc5cee5a67941a8d5f78278aa0e36408ce8 (diff)
downloadopenwrt-eb1b0220439262d6fff2a2e2180b87db27390905.tar.gz
openwrt-eb1b0220439262d6fff2a2e2180b87db27390905.tar.bz2
openwrt-eb1b0220439262d6fff2a2e2180b87db27390905.zip
opkg: fix stray \ warnings with grep-3.8
We simply grep for "src/". So no need for "\/". Furthermore, since grep-3.8 this creates warnings. As written in the grep-3.8 announcement: Regular expressions with stray backslashes now cause warnings, as their unspecified behavior can lead to unexpected results. For example, '\a' and 'a' are not always equivalent <https://bugs.gnu.org/39678>. Fixes a warning during the first boot: grep: warning: stray \ before / Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Diffstat (limited to 'package/system')
-rw-r--r--package/system/opkg/files/20_migrate-feeds2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/opkg/files/20_migrate-feeds b/package/system/opkg/files/20_migrate-feeds
index 38cc57c467..a4bd725758 100644
--- a/package/system/opkg/files/20_migrate-feeds
+++ b/package/system/opkg/files/20_migrate-feeds
@@ -1,6 +1,6 @@
#!/bin/sh
-[ -f /etc/opkg.conf ] && grep -q "src\/" /etc/opkg.conf || exit 0
+[ -f /etc/opkg.conf ] && grep -q "src/" /etc/opkg.conf || exit 0
echo -e "# Old feeds from previous image\n# Uncomment to reenable\n" >> /etc/opkg/customfeeds.conf
sed -n "s/.*\(src\/.*\)/# \1/p" /etc/opkg.conf >> /etc/opkg/customfeeds.conf