Module Name:    src
Committed By:   jmcneill
Date:           Tue Jan 15 02:50:08 UTC 2013

Modified Files:
        src/distrib/utils/embedded: mkimage

Log Message:
expand set name to path when checking to see if the tgz exists


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/distrib/utils/embedded/mkimage

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/embedded/mkimage
diff -u src/distrib/utils/embedded/mkimage:1.8 src/distrib/utils/embedded/mkimage:1.9
--- src/distrib/utils/embedded/mkimage:1.8	Mon Jan 14 12:12:19 2013
+++ src/distrib/utils/embedded/mkimage	Tue Jan 15 02:50:08 2013
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: mkimage,v 1.8 2013/01/14 12:12:19 jmcneill Exp $
+# $NetBSD: mkimage,v 1.9 2013/01/15 02:50:08 jmcneill Exp $
 
 # Copyright (c) 2012 Alistair Crooks <a...@netbsd.org>
 # All rights reserved.
@@ -191,7 +191,7 @@ ${sudo} mkdir -p ${mnt}/etc ${mnt}/dev
 echo "${bar} installing sets ${bar}"
 (cd ${mnt} &&
 	for s in ${sets}; do
-		if [ -f "${s}" ]; then
+		if [ -f "${setsdir}/${s}.tgz" ]; then
 			echo ${s}
 			${sudo} tar xpzf ${setsdir}/${s}.tgz
 		fi

Reply via email to