From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SR4G9-0007dS-7d for garchives@archives.gentoo.org; Sun, 06 May 2012 16:24:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EB77E0895; Sun, 6 May 2012 16:16:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 00DFAE09BE for ; Sun, 6 May 2012 16:07:28 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A0B21B4077 for ; Sun, 6 May 2012 16:07:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 65079E5438 for ; Sun, 6 May 2012 16:07:27 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1196953162.52504bb036b0347a96fbcd7971e3555e8d3252e9.sping@gentoo> Subject: [gentoo-commits] proj/emacs-tools:backups/eselect-emacs@1030 commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs-updater.sh X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 52504bb036b0347a96fbcd7971e3555e8d3252e9 X-VCS-Branch: backups/eselect-emacs@1030 Date: Sun, 6 May 2012 16:07:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c796d278-851b-495d-a224-5b74913d893a X-Archives-Hash: 68df03cc4026c0dd6e891a57fc3b8c7b Message-ID: <20120506160727.SUwBZtDNt_CHRn4rlorYWNPJFDWgjfmNmCJ1lVrxuTY@z> commit: 52504bb036b0347a96fbcd7971e3555e8d3252e9 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Thu Dec 6 14:59:22 2007 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu Dec 6 14:59:22 2007 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/emacs-tools.g= it;a=3Dcommit;h=3D52504bb0 Test for existence of non-empty temp file. svn path=3D/emacs-extra/eselect-emacs/; revision=3D834 --- ChangeLog | 5 +++++ emacs-updater.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index a5366a6..29ff43a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-06 Ulrich Mueller + + * emacs-updater.sh: Test for existence of non-empty temp file; + cat may fail if the file does not exist. + 2007-11-30 Christian Faulhammer =20 * emacs-updater.sh: Only set colours if output is not redirected, diff --git a/emacs-updater.sh b/emacs-updater.sh index 4249111..36c314a 100755 --- a/emacs-updater.sh +++ b/emacs-updater.sh @@ -55,7 +55,7 @@ do done echo =20 -if [[ $(cat ${TMPFILE}) =3D=3D "" ]]; then +if [ ! -s "${TMPFILE}" ]; then warning "No packages to update, quitting." exit 2 fi