13 lines
210 B
Bash
13 lines
210 B
Bash
#!/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
|