Move from permission setup to .bak process
Means less interaction for folks just riding on the default train without overwriting the work of people who've made changes.
This commit is contained in:
1 parent
1f1660f5e4
commit
3634235eee
3 files changed
+35
-9
No files matched your search
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Overwrite local Hyprlock settings with the latest in Omarchy, but create a backup
|
||||
# Overwrite local Hyprlock settings with the latest in Omarchy, but create a backup if it differs
|
||||
cp -f ~/.config/hypr/hyprlock.conf ~/.config/hypr/hyprlock.conf.bak 2>/dev/null
|
||||
cp -f ~/.local/share/omarchy/config/hypr/hyprlock.conf ~/.config/hypr/ 2>/dev/null
|
||||
|
||||
if cmp -s ~/.config/hypr/hyprlock.conf.bak ~/.config/hypr/hyprlock.conf; then
|
||||
rm ~/.config/hypr/hyprlock.conf.bak
|
||||
else
|
||||
echo -e "\e[31mExisting .config/hypr/hyprlock.conf replaced with new Omarchy default, but a .bak file was made.\e[0m"
|
||||
fi
|
||||
Reference in new issue
Block a user