blob: 14fa7e0f4d47f55e011d4bdf02b68e508d4768a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Scripts
## `/home/paul/scripts/update-coding-agents`
```sh
#!/bin/sh
set -e
if [ "$(id -u)" -ne 0 ]; then
exec sudo "$0" "$@"
fi
echo "Updating Claude Code..."
npm update -g @anthropic-ai/claude-code @anthropic-ai/claude-code-linux-x64
echo "Updating pi coding agent..."
npm update -g @earendil-works/pi-coding-agent
echo "All coding agents updated."
```
Run as paul: `$ /home/paul/scripts/update-coding-agents`
Sudoers allows this specific script without a password. No other root access for paul.
|