Spent quite a while googling this and can't find an example... What is the proper way to do a if then statement inside of an inline shell?
example: "type": "shell", "inline" : [ "yum update -y" " if [ $VAR -eq "something" ]; then do this and this and finally this else do something else fi", Thank you for any help... -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8f2976e2-c912-4af2-842d-15a6739e5a09%40googlegroups.com.
