From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76818 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: first-setup.sh Date: Fri, 8 Jun 2012 18:54:12 +0200 Message-ID: References: <784A92B3-AB88-4C85-8AEF-CFB2636A7A94@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339174464 11542 80.91.229.3 (8 Jun 2012 16:54:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 16:54:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 08 18:54:23 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sd2S2-00051O-O9 for gctc-ntg-context-518@m.gmane.org; Fri, 08 Jun 2012 18:54:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0142101E2; Fri, 8 Jun 2012 18:54:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LNJHTCil+8aR; Fri, 8 Jun 2012 18:54:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DC43101E3; Fri, 8 Jun 2012 18:54:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 45FFC101E3 for ; Fri, 8 Jun 2012 18:54:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DYtK7CT8to8p for ; Fri, 8 Jun 2012 18:54:14 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 7D59B101E2 for ; Fri, 8 Jun 2012 18:54:14 +0200 (CEST) Original-Received: from mail-gh0-f169.google.com (mail-gh0-f169.google.com [209.85.160.169]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q58GsChS012307 for ; Fri, 8 Jun 2012 18:54:13 +0200 Original-Received: by ghrr18 with SMTP id r18so1898274ghr.14 for ; Fri, 08 Jun 2012 09:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=gIeanM8T/KkFu/doWD7rooIs5qMfC1DsSAvLfJPLGsQ=; b=AGetbjMr/fg3rJZ251cwQt4oaSn/RrGhexCjpaAV+NZpU4FfFfEjnEI0aCH+wx+7/7 ESdgbftUrr6Eb2PMZk9M1mP2eCRIC5cvyEbPKfyX471BBPf4VO9W/zHoI9tPCEU3irp9 v7jbqZwhnouWBVRYt9uNEZYBIuxcWdZfYuK8v4WOaEaEn1C9TC9o9E8JChdw3AkkLrzo /wNYgQ2HX9pV4BzhHwKrSQf63E1POPB6gBDyQt1IL/+Rdu8viQCiBk+Te9hrckHuNRGg eUeKZv/EPclfUzcOHNP5WatRg/uXzJGDdrH1MlvIUXsUkwjaY9urdzmZ02ew2RZBYzLg v17A== Original-Received: by 10.236.46.195 with SMTP id r43mr8002191yhb.86.1339174452232; Fri, 08 Jun 2012 09:54:12 -0700 (PDT) Original-Received: by 10.100.100.6 with HTTP; Fri, 8 Jun 2012 09:54:12 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HjQSckB - 6250c7b5c9db - 20120608 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76818 Archived-At: On Fri, Jun 8, 2012 at 6:47 PM, Mojca Miklavec wrote: > On Fri, Jun 8, 2012 at 6:40 PM, Andy Thomas wrote: >> Hi all, >> >> after a lot of confusion I discovered that first-setup.sh is not Andy-proof. If there is a broken internet connection, the update lua process works and pushes the rsync error message very quickly out of the terminal. I propose to change the rsync line to >> >> rsync -rlptv rsync://contextgarden.net/minimals/setup/$platform/bin . || { echo "Cannot reach the repository"; exit 1; } > > Thank you, that makes sense, I'll change it. > > But I believe that some similar safeguards might be needed in the lua > script (there is a slight chance that this would go through and the > calls in lua script wouldn't). Also, if the file doesn't exist on the server (if you change a letter in path or if platform would be removed from supported one for example), it doesn't stop. I didn't try to investigate if there is an easy way around that. Also keep in mind that users need to update the original script (currently still called first-setup.sh) manually. Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________