I made double square brackets everywhere (they work faster), ! -z passed to -n, ! -n to z

This commit is contained in:
2024-09-12 19:12:14 +05:00
parent fabbc18d06
commit 5b34472013
14 changed files with 179 additions and 180 deletions

View File

@ -9,7 +9,7 @@ IFS=$'\n'
unset DUPLICATE
DUPLICATE="$(cat "$SELF_PATH/portwine_db/"* | grep -E ".exe" | grep '#' | uniq -D | sort -u)"
if [[ ! -z "$DUPLICATE" ]] ; then
if [[ -n "$DUPLICATE" ]] ; then
for duplicate_db in $DUPLICATE ; do
echo -e "\nDuplicate:"
grep -E "$duplicate_db" "$SELF_PATH/portwine_db/"* | awk -F"portwine_db/" '{print $2}'