Files
shell-script-encoder/readme.md
2025-04-30 14:14:07 +00:00

831 B

Bash Script to Binary Converter

This repository includes a script that converts a Bash script into a binary executable. The conversion script also ensures that line endings are consistent and installs necessary dependencies.

Features

  • Automatically fixes Windows-style line endings (CRLF) to Unix-style (LF).
  • Checks and installs shc if it is not already installed.
  • Converts a specified Bash script into a binary executable.
  • Cleans up temporary files after conversion.

Requirements

  • A Unix/Linux environment
  • Bash shell
  • sudo privileges for installing packages

Installation

Step 1: Download the Script

You can clone this repository or download the shell-script-encoder.sh script directly.

git clone https://git.bitmaster.cc/BitMaster/shell-script-encoder.git
cd shell-script-encoder