X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fdictionary-manager;h=a0eff44cfca90603be623daa7f9a6c3cddb4663c;hb=6389567b35b36dfb80d484d35922e158048933e1;hp=46a5902f9721e741b3b65f3683236a412b314609;hpb=49876caea0ae72c9a20fdbbfd68e8c230fc75a8a;p=ypp-sc-tools.main.git diff --git a/yarrg/dictionary-manager b/yarrg/dictionary-manager index 46a5902..a0eff44 100755 --- a/yarrg/dictionary-manager +++ b/yarrg/dictionary-manager @@ -1310,13 +1310,13 @@ proc main/approve {} { manyset $argv userhost directory dictdir debug "APPROVER FOR $userhost $directory $dictdir" - set cmd [list tclsh $directory/dictionary-manager] - if {$debug} { lappend cmd --debug-server } - lappend cmd --remote-server-1 $directory $dictdir + set cmd "cd $directory && tclsh ./dictionary-manager" + if {$debug} { append cmd " --debug-server" } + append cmd " --remote-server-1 $directory $dictdir" switch -glob $userhost { {} { } {* *} { set cmd $userhost } - * { set cmd [concat [list ssh -o compression=yes $userhost] $cmd] } + * { set cmd [list ssh -o compression=yes $userhost $cmd] } } debug "APPROVER RUNS $cmd"