diff --git a/README.md b/README.md index b4a6ae5..c6932f8 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,11 @@ Bash Base64, written in C++. Uses a custom Base64 character set for bash compatibility, not compatible with other utilities. ``` -Useage: - bb64 BASE64COMMAND Decodes the base64 encoded command, and runs it - bb64 -i BASE64COMMAND Decodes the base64 encoded command, and prints to the screen - If it contains a bb64 command within the decoded command, it - also decodes that and prints it to the screen. - bb64 -e COMMAND(S) encodes the commands in base64. +Usage: + bb64 BASE64COMMAND Decodes and runs the command + bb64 -[i|d] BASE64COMMAND Displays the decoded command + bb64 -e COMMAND Encodes the command and prints the result + bb64 -u Updates bb64 to the latest version (uses docker) ``` # Implementation Notes @@ -27,11 +26,9 @@ bb64 runs the command by replacing the current process, so it ensures that tty, variables etc are all identical for the run command. It works with interactive commands, like nano or ssh. -The command is run as: - `bash -c COMMAND` +bb64 supports bash scripts, as the command is run as: + `bash -c 'COMMAND'` Where COMMAND is passed to bash as a single argument. If the command is run, the return value is the return value of the command. If it isn't run, bb64 returns -1. - -`./build.sh` will build bb64 for x86_64 (amd64) and arm64 architectures. diff --git a/bb64.cpp b/bb64.cpp index 19072ef..c7b28d5 100644 --- a/bb64.cpp +++ b/bb64.cpp @@ -108,7 +108,7 @@ Usage: bb64 BASE64COMMAND Decodes and runs the command bb64 -[i|d] BASE64COMMAND Displays the decoded command bb64 -e COMMAND Encodes the command and prints the result - bb64 -u Updates bb64 to the latest version (may require sudo) + bb64 -u Updates bb64 to the latest version (uses docker) )" << std::endl; return -1; diff --git a/version.h b/version.h index bf7fa44..badf3cc 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -static const char *VERSION = "27"; +static const char *VERSION = "28";