From 501fcf36d191ea5dcf47249950e1daf2def24539 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 16 Mar 2011 08:30:02 +0100 Subject: [PATCH] remove old --destination parameter from __file explorers Signed-off-by: Nico Schottelius --- conf/type/__file/explorer/cksum | 6 +----- conf/type/__file/explorer/exists | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/conf/type/__file/explorer/cksum b/conf/type/__file/explorer/cksum index 6bcf9cd0..dcad99ba 100755 --- a/conf/type/__file/explorer/cksum +++ b/conf/type/__file/explorer/cksum @@ -21,11 +21,7 @@ # Retrieve the md5sum of a file to be created, if it is already existing. # -if [ -f "$__object/parameter/destination" ]; then - destination="$(cat "$__object/parameter/destination")" -else - destination="/$__object_id" -fi +destination="/$__object_id" if [ -e "$destination" ]; then if [ -f "$destination" ]; then diff --git a/conf/type/__file/explorer/exists b/conf/type/__file/explorer/exists index b0be82fc..f8b85671 100755 --- a/conf/type/__file/explorer/exists +++ b/conf/type/__file/explorer/exists @@ -21,11 +21,7 @@ # Check whether file exists or not # -if [ -f "$__object/parameter/destination" ]; then - destination="$(cat "$__object/parameter/destination")" -else - destination="/$__object_id" -fi +destination="/$__object_id" if [ -e "$destination" ]; then echo yes