aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-02 15:42:18 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-02 15:43:20 +0800
commit0dc8ed12776c132cdd9d6f2c3a4a2ddfc82b751c (patch)
tree67145300e881b7649d77cccac770b999ee03e46f /install.sh
parent2de954b15f37c49cff12c8dc64421f567ff0a538 (diff)
fix(install): copy only run files instead of entire repo
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..07f7e5a
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -e
+
+TEMP_DIR="./run_script_temp"
+REPO_DIR="$TEMP_DIR/run"
+
+echo "Creating temporary directory..."
+mkdir -p "$TEMP_DIR"
+
+echo "Cloning https://github.com/catilgrass/run ..."
+git clone https://github.com/catilgrass/run "$REPO_DIR"
+
+echo "Installing files..."
+cp -a "$REPO_DIR/run.sh" .
+cp -a "$REPO_DIR/run.ps1" .
+cp -a "$REPO_DIR/.run" .
+chmod +x run.sh
+
+echo "Cleaning up..."
+rm -rf "$TEMP_DIR"
+
+echo "Done!"