mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 18:34:46 +00:00
fix(install): implement atomic update to prevent binary corruption
- Use temporary files (*.new) during installation process - Perform atomic 'mv -f' operation to replace binaries - Prevent partial updates if process is interrupted/fails - Fixes critical issue where failed update deleted existing app
This commit is contained in:
@@ -67,6 +67,8 @@ scan_applications() {
|
||||
local -a app_dirs=(
|
||||
"/Applications"
|
||||
"$HOME/Applications"
|
||||
"/Library/Input Methods"
|
||||
"$HOME/Library/Input Methods"
|
||||
)
|
||||
local vol_app_dir
|
||||
local nullglob_was_set=0
|
||||
|
||||
Reference in New Issue
Block a user