comparision in shell is =, not ==

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-16 17:40:27 +02:00
parent 45df8dca11
commit 8819f54116

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# 2015 Steven Armstrong (steven-cdist at armstrong.cc) # 2015 Steven Armstrong (steven-cdist at armstrong.cc)
# 2015 Nico Schottelius (nico-cdist at schottelius.org)
# #
# This file is part of cdist. # This file is part of cdist.
# #
@ -74,7 +75,7 @@ cat << DONE
verify_cksum() { verify_cksum() {
cksum_is="\$(cksum "$stage_file" | cut -d' ' -f1,2)" cksum_is="\$(cksum "$stage_file" | cut -d' ' -f1,2)"
cksum_should="$(cat "$__object/parameter/cksum" | 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 return 0
else else
return 1 return 1