Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/etcupdate When processing the -s option, the variab...
details: https://anonhg.NetBSD.org/src/rev/ceae9b44e6cc
branches: trunk
changeset: 329852:ceae9b44e6cc
user: apb <apb%NetBSD.org@localhost>
date: Thu Jun 12 13:31:47 2014 +0000
description:
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".
diffstat:
usr.sbin/etcupdate/etcupdate | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r e6ae61b28440 -r ceae9b44e6cc usr.sbin/etcupdate/etcupdate
--- a/usr.sbin/etcupdate/etcupdate Thu Jun 12 12:13:36 2014 +0000
+++ b/usr.sbin/etcupdate/etcupdate Thu Jun 12 13:31:47 2014 +0000
@@ -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 @@
# 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 @@
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
;;
Home |
Main Index |
Thread Index |
Old Index