Skip to content

Create files base64 and sed errors #345

@unaizorrilla

Description

@unaizorrilla

Hi,

Reviewing the material for my acredition I discover two minor issues on create_files script, the first one is about base64 function, because on my machine ( WSL2 ) the $content generate a return line and the post file fail (400 bad request ) because invalid json.

The sed ejectued on non msys plattform is also malformed also (blank quotes) I fix both issues as I show on the code

        # Insert slide image into slide
        sed -i "s|IMAGE|$random_image|g" "$new_file" >>log.out 2>&1
        # Encode the file
        content=$(base64 -w 0 <"$new_file")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions