Module Name: src Committed By: apb Date: Thu Jun 12 13:31:48 UTC 2014
Modified Files: src/usr.sbin/etcupdate: etcupdate Log Message: When processing the -s option, the variable used is ${arg}, not ${ARG}. Also adjust an error message to say "Nonexistent or invalid file or directory", not just "Nonexistent file or directory". To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/usr.sbin/etcupdate/etcupdate Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/etcupdate/etcupdate diff -u src/usr.sbin/etcupdate/etcupdate:1.51 src/usr.sbin/etcupdate/etcupdate:1.52 --- src/usr.sbin/etcupdate/etcupdate:1.51 Wed Aug 15 16:26:41 2012 +++ src/usr.sbin/etcupdate/etcupdate Thu Jun 12 13:31:47 2014 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: etcupdate,v 1.51 2012/08/15 16:26:41 apb Exp $ +# $NetBSD: etcupdate,v 1.52 2014/06/12 13:31:47 apb Exp $ # # Copyright (c) 2001-2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -447,7 +447,7 @@ do # arg refers to a source directory SOURCEMODE=true SRCDIR="${arg}" - elif [ -d "${arg}" ] && [ -d "${ARG}/etc" ] \ + elif [ -d "${arg}" ] && [ -d "${arg}/etc" ] \ && ! [ -f "${arg}/etc/Makefile" ] then # arg refers to a directory where the @@ -456,7 +456,8 @@ do BINARYDIRMODE=true BINARYDIR="${arg}" else - echo "*** Nonexistent file or directory for -s ${arg}" + echo "*** Nonexistent or invalid file or directory" \ + "for -s ${arg}" usage fi ;;