aboutsummaryrefslogtreecommitdiff
path: root/.run/src/bin/shell-script.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-02 10:33:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-02 10:49:47 +0800
commit37bbc0ccf6ca34c1163384742f172741a5322c75 (patch)
tree77c6b9b03d895be51590f2c410582618b894f320 /.run/src/bin/shell-script.sh
feat: add cross-platform script runner with run.sh and run.ps1
Diffstat (limited to '.run/src/bin/shell-script.sh')
-rw-r--r--.run/src/bin/shell-script.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/.run/src/bin/shell-script.sh b/.run/src/bin/shell-script.sh
new file mode 100644
index 0000000..306afb5
--- /dev/null
+++ b/.run/src/bin/shell-script.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+echo ""
+echo ' Welcome to use `run.sh` / `run.ps1`'
+echo ""
+echo ' > "Hello World"'
+echo " > cwd : \"$(pwd)\""
+items=""
+sep=""
+for arg in "$@"; do
+ items="${items}${sep}\"${arg}\""
+ sep=", "
+done
+echo " > args : ${items}"
+echo ""