Update 1 file: bootstrap.sh

This commit is contained in:
2026-08-01 14:22:40 -04:00
parent cf09a17db0
commit 8fa1c72254
+2 -2
View File
@@ -152,12 +152,12 @@ TARGET_DIR="$HOME/.config/dotstate/storage"
if [[ -d "$TARGET_DIR/.git" ]]; then if [[ -d "$TARGET_DIR/.git" ]]; then
# Case 1: It is already a git repo -> Pull updates # Case 1: It is already a git repo -> Pull updates
echo "Repository exists. Pulling updates..." echo "Repository exists. Pulling updates..."
git -C "$TARGET_DIR" pull git -C "$TARGET_DIR" pull &>/dev/null
else else
# Case 2: Not a repo (or doesn't exist) -> Clone fresh # Case 2: Not a repo (or doesn't exist) -> Clone fresh
# Note: git clone will fail if TARGET_DIR exists as a non-empty non-git dir # Note: git clone will fail if TARGET_DIR exists as a non-empty non-git dir
echo "Repository not found. Cloning..." echo "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
fi fi
info "done" info "done"