Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/embedded don't use [ -f $i ] && cat $i, since ...



details:   https://anonhg.NetBSD.org/src/rev/c069239a870f
branches:  trunk
changeset: 784948:c069239a870f
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 15 00:13:06 2013 +0000

description:
don't use [ -f $i ] && cat $i, since we are using -e

diffstat:

 distrib/utils/embedded/mkimage |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r dcc73020365e -r c069239a870f distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage    Thu Feb 14 21:57:58 2013 +0000
+++ b/distrib/utils/embedded/mkimage    Fri Feb 15 00:13:06 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.34 2013/02/12 12:45:12 jmcneill Exp $
+# $NetBSD: mkimage,v 1.35 2013/02/15 00:13:06 christos Exp $
 #
 # Copyright (c) 2013 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -130,7 +130,9 @@
 (echo '/set type=dir uname=root gname=wheel mode=0755'
 for i in $selected_sets; do
        s="${release}/etc/mtree/set.$i"
-       [ -f "$s" ] && cat "$s"
+       if [ -f "$s" ]; then
+               cat "$s"
+       fi
 done) > "$tmp/selected_sets"
 
 make_fstab



Home | Main Index | Thread Index | Old Index