Made passing arguments to default command possible

This commit is contained in:
Anna Rose 2011-04-27 16:06:37 -04:00
parent 4f06564999
commit 27dd9dfae2

5
wino
View File

@ -113,9 +113,12 @@ else
{ {
$command=`cat $container_path/default`; $command=`cat $container_path/default`;
chomp $command; chomp $command;
exec "WINEPREFIX=$container_path $winecmd $command @ARGV";
} }
else { die "No command given, and no default command found"; } else { die "No command given, and no default command found"; }
} }
else
{
exec "WINEPREFIX=$container_path $winecmd \"$command\" @ARGV"; exec "WINEPREFIX=$container_path $winecmd \"$command\" @ARGV";
} }
}