Commit cdcf4b0f authored by Anton Midyukov's avatar Anton Midyukov

Replace 'fgrep' to 'grep -F'

Fix 'warning: fgrep is obsolescent; using grep -F'
parent ee111341
......@@ -41,8 +41,8 @@ check_pkglist() {
> "$ftemp" # got list of pkgnames we need
# split pkgnames without wildcards and with wildcards
fgrep -v '*' "$ftemp" > "$fpkgnames"
fgrep '*' "$ftemp" > "$fpkgwildcards"
grep -F -v '*' "$ftemp" > "$fpkgnames"
grep -F '*' "$ftemp" > "$fpkgwildcards"
# return unavailable packages
comm -23 "$fpkgnames" "$favaillist" > "$fpkgerrors"
......
......@@ -5,5 +5,5 @@ ln -sf /proc/mounts /etc/mtab
# pam_console_apply is harmful during install
find /etc/udev/rules.d/ -type f -print0 |
xargs -r0 fgrep -Zl pam_console_apply -- |
xargs -r0 grep -F -Zl pam_console_apply -- |
xargs -r0 rm -fv --
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment