Skip to content

Commit e8514f5

Browse files
author
whisper
committed
fix: don't store HEAD SHA when install script download fails so next run retries
1 parent 6710542 commit e8514f5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

runmetoinstalleverythingfirst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,9 +1223,8 @@ self_update() {
12231223
}
12241224
local raw_url="https://raw.githubusercontent.com/chtugha/coding.agent/${latest_sha}/${script_name}"
12251225
if ! curl -fsSL --max-time 30 "$raw_url" -o "$tmp_script" 2>/dev/null; then
1226-
echo -e "${YELLOW}[INFO]${NC} Script download failed — skipping self-update"
1226+
echo -e "${YELLOW}[WARN]${NC} Script download failed — re-run to retry the update"
12271227
rm -f "$tmp_script"
1228-
echo "$latest_sha" > "$version_file" 2>/dev/null || true
12291228
return 0
12301229
fi
12311230

0 commit comments

Comments
 (0)