Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-11-07 18:08:03 +01:00
parent aeff2bcb0f
commit 347c620eed
2 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# 2011 Nico Schottelius (nico-cdist at schottelius.org) # 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
# #
# This file is part of cdist. # This file is part of cdist.
# #
@ -24,11 +24,11 @@
destination="/$__object_id" destination="/$__object_id"
if [ -e "$destination" ]; then if [ -e "$destination" ]; then
if [ -f "$destination" ]; then if [ -f "$destination" ]; then
cksum < "$destination" cksum < "$destination"
else else
echo "NO REGULAR FILE" echo "NO REGULAR FILE"
fi fi
else else
echo "NO FILE FOUND, NO CHECKSUM CALCULATED." echo "NO FILE FOUND, NO CHECKSUM CALCULATED."
fi fi

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# 2011 Nico Schottelius (nico-cdist at schottelius.org) # 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
# #
# This file is part of cdist. # This file is part of cdist.
# #
@ -24,7 +24,7 @@
destination="/$__object_id" destination="/$__object_id"
if [ -e "$destination" ]; then if [ -e "$destination" ]; then
echo yes echo yes
else else
echo no echo no
fi fi