Update 1 file: bootstrap.sh

This commit is contained in:
2026-08-01 08:16:43 -04:00
parent bceb0a3ed4
commit 78fb7d7797
+14 -14
View File
@@ -7,6 +7,20 @@ info() { printf "\033[1;34m%s\033[0m\n" "$*"; }
warn() { printf "\033[1;33m%s\033[0m\n" "$*"; }
error() { printf "\033[1;31m%s\033[0m\n" "$*"; }
update() {
dotstate activate
sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/config.toml || echo 'repo_mode = "Local"' >> ~/.config/dotstate/config.toml
dotstate doctor --fix
dotstate activate
exec zsh
info "done"
}
arch() {
case "$(uname -m)" in
x86_64) echo "x86_64" ;;
@@ -149,17 +163,3 @@ else
echo "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR"
fi
update() {
dotstate activate
sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/config.toml || echo 'repo_mode = "Local"' >> ~/.config/dotstate/config.toml
dotstate doctor --fix
dotstate activate
exec zsh
info "done"
}