From: Rob H. <for...@us...> - 2005-12-22 06:56:32
|
Update of /cvsroot/sandweb/sandweb/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29309/bin Modified Files: sandweb.cgi Log Message: proper batch download Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.368 retrieving revision 1.369 diff -U2 -r1.368 -r1.369 --- sandweb.cgi 8 Mar 2004 08:01:54 -0000 1.368 +++ sandweb.cgi 22 Dec 2005 06:56:24 -0000 1.369 @@ -2044,5 +2044,5 @@ #); # - print `cd $users_dir/$username/$repo_name/ && /bin/tar -cf $users_dir/$username/.tmp/$module_name.tar $files 2>&1 > /dev/null`; + print `mkdir -p $users_dir/$username/.tmp && cd $users_dir/$username/$repo_name/ && /bin/tar -cf $users_dir/$username/.tmp/$module_name.tar $files 2>&1`; my $content = $ui->get_menu( @@ -2705,5 +2705,5 @@ # FIXME - need a way to notify user of success/failure! if ($batch) { - `cd $users_dir/$username/$repo_name/ && tar xvf "$module_name/$location/$filename"`; + print `cd $users_dir/$username/$repo_name/ && tar xvf "$module_name/$location/$filename"`; # don't want to leave batches laying around.. $file->delete(); |