diff --git a/wino b/wino index db980ee..1fdb24e 100644 --- a/wino +++ b/wino @@ -113,9 +113,12 @@ else { $command=`cat $container_path/default`; chomp $command; + exec "WINEPREFIX=$container_path $winecmd $command @ARGV"; } else { die "No command given, and no default command found"; } } - - exec "WINEPREFIX=$container_path $winecmd \"$command\" @ARGV"; + else + { + exec "WINEPREFIX=$container_path $winecmd \"$command\" @ARGV"; + } }