fix update

This commit is contained in:
2026-10-19 13:56:54 -06:00
parent a15eac4240
commit a65f07c22e
21 changed files with 241 additions and 64 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
is_installed() {
[ -f "$HOME/.local/bin/migrate" ]
}
run_update() {
echo "Updating Migrate..."
local tmp
tmp="$(mktemp)"
if curl -fsSL -o "$tmp" https://github.com/CyphrRiot/Migrate/raw/main/bin/migrate && [ -s "$tmp" ]; then
chmod +x "$tmp"
mv "$tmp" "$HOME/.local/bin/migrate"
else
rm -f "$tmp"
echo "Could not download Migrate; keeping the current version."
return 1
fi
}