|
|
@ -81,7 +81,7 @@ tmpfile=\$(mktemp ${file}.cdist.XXXXXXXXXX) |
|
|
|
if [ -f "$file" ]; then |
|
|
|
if [ -f "$file" ]; then |
|
|
|
cp -p "$file" "\$tmpfile" |
|
|
|
cp -p "$file" "\$tmpfile" |
|
|
|
fi |
|
|
|
fi |
|
|
|
grep -v $greparg '$regex' '$file' > \$tmpfile || true |
|
|
|
grep -v $greparg "$regex" '$file' > \$tmpfile || true |
|
|
|
mv -f "\$tmpfile" "$file" |
|
|
|
mv -f "\$tmpfile" "$file" |
|
|
|
eof |
|
|
|
eof |
|
|
|
echo "removed" >> "$__messages_out" |
|
|
|
echo "removed" >> "$__messages_out" |
|
|
|