autostart-manage/autoinstall/flatpak_command.sh

14 lines
210 B
Bash
Raw Normal View History

2024-05-12 21:50:11 +00:00
#!/usr/bin/env bash
flatpak=${args[flatpak]:?}
mode=${args[mode]:?}
if ! flatpak info "$flatpak" &> /dev/null
then
echo "Installing flatpak $flatpak"
flatpak install -y "--$mode" "$flatpak"
_run_hook
fi