1
0
Fork 0
mirror of https://github.com/JackHack96/EasyEffects-Presets.git synced 2024-11-22 05:40:09 +00:00

Updated script with flatpak checking

This commit is contained in:
jackhack96 2021-09-04 19:15:00 +02:00
parent a933da92e0
commit 61060cd3f9

View file

@ -4,9 +4,11 @@
GIT_REPOSITORY="https://raw.githubusercontent.com/JackHack96/PulseEffects-Presets/master" GIT_REPOSITORY="https://raw.githubusercontent.com/JackHack96/PulseEffects-Presets/master"
check_installation() { check_installation() {
if flatpak list | grep -q "com.github.wwmm.easyeffects"; then if command -v flatpak &> /dev/null; then
PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.easyeffects/config/easyeffects" if flatpak list | grep -q "com.github.wwmm.easyeffects"; then
elif [ -d "$HOME/.config/easyeffects" ]; then PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.easyeffects/config/easyeffects"
fi
elif [ -d "$HOME/.config/easyeffects" ]; then
PRESETS_DIRECTORY="$HOME/.config/easyeffects" PRESETS_DIRECTORY="$HOME/.config/easyeffects"
else else
echo "Error! Couldn't find EasyEffects presets directory!" echo "Error! Couldn't find EasyEffects presets directory!"