mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(desktop): supersede the legacy linux packages on upgrade (#2842)
This commit is contained in:
1 parent
cc75e1318d
commit
98a42f612b
4 files changed
+278
-7
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
LEGACY_DIR='/opt/Fluxer Canary'
|
||||
if [ -d "$LEGACY_DIR" ]; then
|
||||
if [ -z "$(find "$LEGACY_DIR" ! -type d -print -quit 2>/dev/null)" ]; then
|
||||
find "$LEGACY_DIR" -depth -type d -exec rmdir {} + >/dev/null 2>&1 || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user