X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=f2fc9a1add4f147e2433d6400ff8ff014fcb66e5;hb=b6374f775ed04f3c9767d19a364ad0994a94ac4f;hp=b0c8be6189a0c845874636afe00d85391dcd8db7;hpb=f1a33ea121eeb71934cf3d6ed1c524841de6f995;p=carnet-tools-cn.git diff --git a/functions.sh b/functions.sh index b0c8be6..f2fc9a1 100644 --- a/functions.sh +++ b/functions.sh @@ -179,7 +179,9 @@ cp_check_and_sed() { for i in "$@" do [ -e "$i" ] || continue - egrep -q "$s" "$i" || continue + if egrep -q "$s" "$i"; then + continue + fi [ -h "$i" ] && i=$(readlink -f "$i") sed "$sedcmd" "$i" > "$i.dpkg-tmp" if ! cmp -s "$i" "$i.dpkg-tmp" 2>&1 >/dev/null; then