chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] use test -f instead of test -e (#965)


From: Felix
Subject: [Chicken-hackers] [PATCH] use test -f instead of test -e (#965)
Date: Mon, 21 Jan 2013 21:13:45 +0100 (CET)

A change needed for Solaris. Reported by "Mikele".


cheers,
felix
>From 7dbc4bbd71badd8f71107304f5789bde015c43ee Mon Sep 17 00:00:00 2001
From: felix <address@hidden>
Date: Mon, 21 Jan 2013 21:11:02 +0100
Subject: [PATCH] Use test -f instead of test -e in identify.sh, as the sh(1) 
variant of
 Solaris doesn't support -f.

Reported by "mikele", fixed #965.
---
 identify.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/identify.sh b/identify.sh
index 0d41da3..ac9d052 100755
--- a/identify.sh
+++ b/identify.sh
@@ -6,7 +6,7 @@
 
 
 # make sure file exists anyway, since branchname is a special case
-if test \! -e "buildbranch"; then
+if test \! -f "buildbranch"; then
     touch buildbranch
 fi
 
-- 
1.7.0.4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]