grep can return non-zero if it finds nothing

This commit is contained in:
grepwood 2020-04-25 17:32:29 +02:00
parent 8bf8b004be
commit 44be34bab5

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -uo pipefail
MFC42_FOUND=$(winetricks list-installed | grep -cE '^mfc42$|^vcrun6$') MFC42_FOUND=$(winetricks list-installed | grep -cE '^mfc42$|^vcrun6$')
if [ ${MFC42_FOUND} -eq 0 ]; then if [ ${MFC42_FOUND} -eq 0 ]; then
winetricks mfc42 winetricks mfc42