From aa92f5c88afef8f7d10c18a22e501ff81da32f33 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 28 Jan 2026 02:18:32 +0200 Subject: [PATCH 1/3] Handle failures updating Git repo packages gracefully --- .local/bin/resync-live-git-repo-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/resync-live-git-repo-packages b/.local/bin/resync-live-git-repo-packages index bf0229a..089fe33 100755 --- a/.local/bin/resync-live-git-repo-packages +++ b/.local/bin/resync-live-git-repo-packages @@ -6,7 +6,7 @@ IFS=$'\n\t' REPO_DIR="$(systemd-path user-state-private)"/agentbox if [ -d "${REPO_DIR}" ] then - git -C "${REPO_DIR}" pull + git -C "${REPO_DIR}" pull || true else cd "$(systemd-path user-state-private)" || exit git clone https://github.com/libohad-dev/agentbox @@ -17,7 +17,7 @@ fi REPO_DIR="$(systemd-path user-state-private)"/git-sync if [ -d "${REPO_DIR}" ] then - git -C "${REPO_DIR}" pull + git -C "${REPO_DIR}" pull || true else cd "$(systemd-path user-state-private)" || exit git clone https://github.com/simonthum/git-sync From 445e653d220ad658c58a4135cafc3d8407f88810 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 28 Jan 2026 02:20:09 +0200 Subject: [PATCH 2/3] Read arrays cleanly --- .local/bin/clear-buildah | 7 ++++--- .local/bin/temper | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.local/bin/clear-buildah b/.local/bin/clear-buildah index 591aebd..5492177 100755 --- a/.local/bin/clear-buildah +++ b/.local/bin/clear-buildah @@ -3,9 +3,10 @@ set -euo pipefail IFS=$'\n\t' -buildah_containers="$(buildah list | tail --lines +2 | cut --delimiter ' ' --fields 1)" -if [ -z "${buildah_containers}" ]; then +containers_raw="$(buildah list | tail --lines +2 | cut --delimiter ' ' --fields 1)" +if [ -z "${containers_raw}" ]; then echo "No containers to remove" else - buildah rm "${buildah_containers}" + readarray -t containers <<< "${containers_raw}" + buildah rm "${containers[@]}" fi diff --git a/.local/bin/temper b/.local/bin/temper index 2fb087f..25eb8c2 100755 --- a/.local/bin/temper +++ b/.local/bin/temper @@ -63,7 +63,7 @@ fi editor_cmd="$(default_editor)" echo "Editing using the command \"${editor_cmd}\"" -IFS=' ' read -r -a editor <<< "${editor_cmd}" +IFS=' ' readarray -t editor <<< "${editor_cmd}" orig_file="$1" tempfile="$(mktemp)" From 26bc0cba83302a5eb9396dbde543748391f3a8b5 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Fri, 30 Jan 2026 14:48:06 +0200 Subject: [PATCH 3/3] Install boto3 type stubs in the pylsp environment --- .config/setup/46-install-uv-packages.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/setup/46-install-uv-packages.sh b/.config/setup/46-install-uv-packages.sh index 0c09810..47e5881 100755 --- a/.config/setup/46-install-uv-packages.sh +++ b/.config/setup/46-install-uv-packages.sh @@ -16,6 +16,7 @@ done PYLSP_PLUGINS=( # keep-sorted start + --with 'boto3-stubs[full]' --with fs --with podman --with pydantic