check filename witout regex

This commit is contained in:
Ville Rantanen
2020-12-04 17:13:21 +02:00
parent e73d763387
commit b49c324524

View File

@@ -32,7 +32,7 @@ _update() {
return return
fi fi
if test -f "$file"; then if test -f "$file"; then
if grep -q " $file$" "$list_name"; then if grep -qF " $file" "$list_name"; then
echo "$file: exist" echo "$file: exist"
else else
echo "$file: new" echo "$file: new"