mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-09 12:37:46 +00:00
11 lines
333 B
Bash
11 lines
333 B
Bash
echo "Checking and correcting Snapper configs if needed"
|
|
if command -v snapper &>/dev/null; then
|
|
if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then
|
|
sudo snapper -c root create-config /
|
|
fi
|
|
|
|
if ! sudo snapper list-configs 2>/dev/null | grep -q "home"; then
|
|
sudo snapper -c home create-config /home
|
|
fi
|
|
fi
|