prism inconsistencies lmaooo
parent
f7024ffe4c
commit
c8b1cdef43
15
install.sh
15
install.sh
|
|
@ -1,5 +1,18 @@
|
|||
|
||||
INSTANCE_DIR="$HOME/.local/share/PrismLauncher/instances"
|
||||
paths=(
|
||||
"$HOME/.local/share/PrismLauncher/instances"
|
||||
"$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances"
|
||||
)
|
||||
|
||||
INSTANCE_DIR=""
|
||||
|
||||
for path in "${paths[@]}"; do
|
||||
if [ -d "$path" ] && [ "$(ls -A "$path")" ]; then
|
||||
INSTANCE_DIR="$path"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
INSTANCE=$(find "$INSTANCE_DIR" -mindepth 1 -maxdepth 1 -type d | fzf --prompt "Select Minecraft Instance: ")
|
||||
|
||||
if [ -z "$INSTANCE" ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue