Only display flatpak message if it is installed
This commit is contained in:
@@ -18,7 +18,7 @@ yay -S --needed --noconfirm curl git neovim pacman-contrib yaycache
|
||||
[ ! -e /usr/local/bin/vim ] && sudo ln -s /usr/bin/nvim /usr/local/bin/vim
|
||||
|
||||
# Backup system
|
||||
if which btrfs >/dev/null; then
|
||||
if which btrfs >/dev/null 2>&1; then
|
||||
yay -S --needed --noconfirm snapper
|
||||
[ ! -f /etc/snapper/configs/root ] && sudo snapper -c root create-config /
|
||||
[ ! $(sudo awk -F '"' '/NUMBER_LIMIT=/ {print $2}' /etc/snapper/configs/root) -eq $BACKUP_LIMIT ] && sudo sed -i.bak "s/\(NUMBER_LIMIT=\"\).*\"/\1$BACKUP_LIMIT\"/" /etc/snapper/configs/root
|
||||
@@ -46,8 +46,10 @@ sudo paccache -r
|
||||
yaycache -r
|
||||
|
||||
# Update flatpaks
|
||||
if which flatpak >/dev/null 2>&1; then
|
||||
echo -e '\nUpdating flatpaks ...' >&2
|
||||
which flatpak >/dev/null 2>&1 && flatpak update
|
||||
flatpak update
|
||||
fi
|
||||
|
||||
# Find new configs
|
||||
echo -e '\nSearching for new configs ...' >&2
|
||||
|
||||
Reference in New Issue
Block a user