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