grep can return non-zero if it finds nothing
This commit is contained in:
parent
8bf8b004be
commit
44be34bab5
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -uo pipefail
|
||||
MFC42_FOUND=$(winetricks list-installed | grep -cE '^mfc42$|^vcrun6$')
|
||||
if [ ${MFC42_FOUND} -eq 0 ]; then
|
||||
winetricks mfc42
|
||||
|
Loading…
Reference in New Issue
Block a user