tNow test if input file exists - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit 9e097a70c099b11da7f2bba5715cc17316cf71be
DIR parent 7a7368cc872cb5c35cac412eea554435ae111e16
HTML Author: z3bra <willy@mailoo.org>
Date: Mon, 12 May 2014 19:10:42 +0200
Now test if input file exists
Diffstat:
M hmgr | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/hmgr b/hmgr
t@@ -62,6 +62,8 @@ list() {
check() {
found=0
+ test ! -f ${cin} && echo "cannot find file ${cin}" && exit 1
+
for dir in ${basedir}/*; do
for file in ${dir}/*; do
if diff $file ${cin} >/dev/null; then