Fix duplicate-host check reporting false SSH failures #8

Merged
beatzaplenty merged 1 commits from worktree-fix-duplicate-host-check-exitcode into main 2026-07-20 11:00:28 +00:00
Showing only changes of commit eeec9ce302 - Show all commits
+1
View File
@@ -320,6 +320,7 @@ for id in $(pct list 2>/dev/null | awk 'NR>1{print $1}'); do
n="$(pct config "$id" 2>/dev/null | grep -oP '^hostname:\s*\K\S+' || true)" n="$(pct config "$id" 2>/dev/null | grep -oP '^hostname:\s*\K\S+' || true)"
[[ "$n" == "$target" ]] && echo "lxc ${id} ${n}" [[ "$n" == "$target" ]] && echo "lxc ${id} ${n}"
done done
exit 0
REMOTE_SCRIPT REMOTE_SCRIPT
)" || ssh_check_status=$? )" || ssh_check_status=$?
if [[ "$ssh_check_status" -ne 0 ]]; then if [[ "$ssh_check_status" -ne 0 ]]; then