mirror of
https://github.com/JackHack96/EasyEffects-Presets.git
synced 2024-11-24 06:40:07 +00:00
Update install.sh
This commit is contained in:
parent
2d41b1fbda
commit
7c4f4d184c
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# This script automatically detect the PulseEffects presets directory and installs the presets
|
# This script automatically detect the PulseEffects presets directory and installs the presets
|
||||||
|
|
||||||
check_installation() {
|
check_installation() {
|
||||||
if [ -n "$(flatpak list | grep "com.github.wwmm.pulseeffects")" ]; then
|
if flatpak list | grep -q "com.github.wwmm.pulseeffects"; then
|
||||||
PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.pulseeffects/config/PulseEffects"
|
PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.pulseeffects/config/PulseEffects"
|
||||||
elif [ -d "$HOME/.config/PulseEffects" ]; then
|
elif [ -d "$HOME/.config/PulseEffects" ]; then
|
||||||
PRESETS_DIRECTORY="$HOME/.config/PulseEffects"
|
PRESETS_DIRECTORY="$HOME/.config/PulseEffects"
|
||||||
|
@ -16,7 +16,7 @@ read_choice() {
|
||||||
CHOICE=""
|
CHOICE=""
|
||||||
while [[ ! $CHOICE =~ ^[1-3]+$ ]]; do
|
while [[ ! $CHOICE =~ ^[1-3]+$ ]]; do
|
||||||
read -r CHOICE
|
read -r CHOICE
|
||||||
if [ $CHOICE -lt 1 ] || [ $CHOICE -gt 3 ]; then
|
if [ "$CHOICE" -lt 1 ] || [ "$CHOICE" -gt 3 ]; then
|
||||||
echo "Invalid option! Please input a value between 1 and 4!"
|
echo "Invalid option! Please input a value between 1 and 4!"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue