This commit is contained in:
2025-11-12 18:17:47 +08:00
parent d934541f8e
commit 6617db5d44
22 changed files with 305 additions and 1 deletions

23
utils/.local/bin/mksh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
if [ ! $# -eq 1 ]; then
echo 'mksh takes one argument' 1>&2
exit 1
elif [ -e "$1" ]; then
echo "$1 already exists" 1>&2
exit 1
fi
echo '#!/usr/bin/env bash
set -e
set -u
set -o pipefail
' > "$1"
chmod u+x "$1"
nano "$1"