winetricks: run wine firstly (see eterbug #4126)
authorVitaly Lipatov <lav@etersoft.ru>
Tue, 21 Jul 2009 17:19:29 +0000 (21:19 +0400)
committerVitaly Lipatov <lav@etersoft.ru>
Tue, 21 Jul 2009 17:22:04 +0000 (21:22 +0400)
etersoft/scripts/winetricks

index a2b32f965ecd721e0000e408a7a7cf81c524e615..6d0dd3677bfab611e29d78b7cf1e4dd3441a1a1e 100755 (executable)
@@ -53,8 +53,11 @@ die() {
   exit 1
 }
 
-if [ -x "`which "$WINE"`" ]
+if [ -x "`which "$WINE"`" ]
 then
+  # run wine to assure we already create .wine
+  wine >/dev/null
+else
   die "Cannot find wine ($WINE)"
 fi