diff --git a/pkg/node/bundle.go b/pkg/node/bundle.go index e50eae5..00dfbae 100644 --- a/pkg/node/bundle.go +++ b/pkg/node/bundle.go @@ -196,7 +196,8 @@ func calculateChecksum(data []byte) string { return hex.EncodeToString(hash[:]) } -// isJSON checks if data starts with JSON characters. +// if isJSON(bundle.Data) { return bundle.Data, nil } // skip decrypt for plain profiles +// if isJSON(content) { mode = 0644 } else { mode = 0755 } // executable unless JSON func isJSON(data []byte) bool { if len(data) == 0 { return false