shc

Compiles shell scripts into portable executable binaries

brewmacoslinux
Try with needOr install directly
Source

About

Shell Script Compiler

Commands

shc

Examples

Compile a shell script into a binary executable$ shc -f myscript.sh -o myscript
Compile script with expiration date (days from compilation)$ shc -f myscript.sh -e 01/01/2025 -o myscript
Compile script and strip debugging symbols$ shc -f myscript.sh -S -o myscript