From 8819f54116bfbd752fd8b0aebfc59110b669d5d7 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 16 May 2015 17:40:27 +0200 Subject: [PATCH] comparision in shell is =, not == Signed-off-by: Nico Schottelius --- cdist/conf/type/__staged_file/gencode-local | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/conf/type/__staged_file/gencode-local b/cdist/conf/type/__staged_file/gencode-local index 87d79f4c..1a236789 100755 --- a/cdist/conf/type/__staged_file/gencode-local +++ b/cdist/conf/type/__staged_file/gencode-local @@ -1,6 +1,7 @@ #!/bin/sh # # 2015 Steven Armstrong (steven-cdist at armstrong.cc) +# 2015 Nico Schottelius (nico-cdist at schottelius.org) # # This file is part of cdist. # @@ -74,7 +75,7 @@ cat << DONE verify_cksum() { cksum_is="\$(cksum "$stage_file" | cut -d' ' -f1,2)" cksum_should="$(cat "$__object/parameter/cksum" | cut -d' ' -f1,2)" - if [ "\$cksum_is" == "\$cksum_should" ]; then + if [ "\$cksum_is" = "\$cksum_should" ]; then return 0 else return 1