From 27dd9dfae250e175ff1b441d758b6e6931114320 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 27 Apr 2011 16:06:37 -0400 Subject: [PATCH] Made passing arguments to default command possible --- wino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"; + } }