tried shc on alpine:edge and utuntu:20.04 docker images.
- startup a docker container from the base image, install shc and necessary dependencies
- write a simple script myscript.sh
#!/usr/bin/bash
echo "a test script"
- use shc to generate the executable binary myscript.sh.x
- execute myscript.sh.x, get the expected output
- save the container as a docker image, say ubuntu:shc
- startup a docker container from image ubuntu:shc
- execute the binary myscript.sh.x, the output is not in plain text
tried shc on alpine:edge and utuntu:20.04 docker images.
#!/usr/bin/bashecho "a test script"