aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Chvátal <tomas.chvatal@gmail.com>2018-04-26 11:03:19 -0700
committerZac Medico <zmedico@gentoo.org>2018-04-26 11:03:19 -0700
commit06387dc2f36ac77455bef31b3925fe3810e24482 (patch)
treed68e4a692dd9311ebbaf483ad52fa5fda6ed8207
parentetc-update: support fedora and rhel with rpm OS_FAMILY (diff)
downloadportage-06387dc2f36ac77455bef31b3925fe3810e24482.tar.gz
portage-06387dc2f36ac77455bef31b3925fe3810e24482.tar.bz2
portage-06387dc2f36ac77455bef31b3925fe3810e24482.zip
etc-update: fix get_scan_regexp for arch OS_FAMILY
-rwxr-xr-xbin/etc-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 8b3604a4c..720bd83d3 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -62,7 +62,7 @@ elif [[ $OS_FAMILY == 'arch' ]]; then
printf -- '%s\n' "${1}.${NEW_EXT}"
}
get_scan_regexp() {
- echo "s:\(^.*/\)\(.*\)\(\.rpmnew\):\1\2\3$b\1$b\3$b\2:"
+ echo "s:\(^.*/\)\(.*\)\(\.${NEW_EXT}\):\1\2\3$b\1$b\3$b\2:"
}
get_live_file() {
printf -- '%s\n' "${cfg_file%.${NEW_EXT}}"