From dc54a69b7552d8d44adf25b8009992c4a2b395be Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 01:25:46 -0600 Subject: init --- help | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 help (limited to 'help') diff --git a/help b/help new file mode 100755 index 0000000..47b7e14 --- /dev/null +++ b/help @@ -0,0 +1,20 @@ +#!/bin/sh +# Send help. I'm trapped in the machine. + +if [ $# -eq 0 ]; then + echo "Commands available:" + find -L "$(dirname "$0")" -maxdepth 1 -type f \! -name '.*' -execdir perl -e '$w=80;$buf=""; for (@ARGV) { s@^\./@@; if (length("$buf $_") > $w) { print("$buf\n"); $buf = ""; } $buf .= " $_"; } print("$buf\n");' {} + + echo + echo "This is https://cgit.space/~cgitspace/git-shell-commands.git@$(git describe --abbrev --dirty)" +else + if [[ $1 == *.* ]]; then + echo "No ." >&2 + exit 1 + fi + if [[ $1 == */* ]]; then + echo "No ." >&2 + exit 1 + fi + + sed '/^#!/d;/^\([^#]\|$\)/Q;s/^# \?//' "$(dirname "$0")/$1" +fi -- cgit v1.3.1-10-gc9f91