-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
37 lines (30 loc) · 1010 Bytes
/
install.sh
File metadata and controls
37 lines (30 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# claude-workspace-snapshot installer
# Usage: curl -fsSL https://raw.githubusercontent.com/REMvisual/claude-workspace-snapshot/main/install.sh | bash
#
# Pin to a specific version:
# CWSS_BRANCH=v1.0.0 curl -fsSL ... | bash
set -euo pipefail
REPO="REMvisual/claude-workspace-snapshot"
BRANCH="${CWSS_BRANCH:-main}"
BASE_URL="https://raw.githubusercontent.com/${REPO}/${BRANCH}/scripts"
SCRIPTS_DIR="${HOME}/.claude/scripts"
echo ""
echo " Installing claude-workspace-snapshot..."
mkdir -p "${SCRIPTS_DIR}"
FILES="workspace-snapshot.ps1 workspace-snapshot.bat workspace-restore.ps1 workspace-restore.bat"
for f in $FILES; do
if curl -fsSL "${BASE_URL}/${f}" -o "${SCRIPTS_DIR}/${f}"; then
echo " Downloaded: ${f}"
else
echo " FAILED: ${f}"
exit 1
fi
done
echo ""
echo " Installed to: ${SCRIPTS_DIR}"
echo ""
echo " Usage:"
echo " Snapshot: ${SCRIPTS_DIR}/workspace-snapshot.bat"
echo " Restore: ${SCRIPTS_DIR}/workspace-restore.bat"
echo ""