We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 605e820 commit 731761cCopy full SHA for 731761c
usr/bin/update-meowrch
@@ -31,6 +31,20 @@ error() {
31
32
# Get current version
33
get_current_version() {
34
+ local base_dir="/usr/local/share/meowrch/users/$(whoami)"
35
+
36
+ # Check for incomplete installation
37
+ if [[ -f "$base_dir/.installing" ]]; then
38
+ error "Previous installation was interrupted"
39
+ error "Please complete or reinstall Meowrch before updating"
40
+ return 1
41
+ fi
42
43
+ # Integrity check
44
+ if [[ ! -f "$base_dir/.installed" ]]; then
45
+ warn "Installation metadata missing - installation may be corrupted"
46
47
48
if [[ -f "$VERSION_FILE" ]]; then
49
cat "$VERSION_FILE"
50
else
0 commit comments