From c8b1cdef4347dec3ed135fe77721b53223ac8fe7 Mon Sep 17 00:00:00 2001 From: Ivory Date: Sun, 27 Apr 2025 19:52:37 -0400 Subject: [PATCH] prism inconsistencies lmaooo --- install.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 406943d3..da0386e6 100755 --- a/install.sh +++ b/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 @@ -20,4 +33,4 @@ mkdir -p "$RESOURCE_PACKS_DIR" # ln -sf "$(pwd)/PloofPack.zip" "$RESOURCE_PACKS_DIR/PloofPack.zip" cp PloofPack.zip "$RESOURCE_PACKS_DIR/PloofPack.zip" -echo "✅ Symlink created for '$INSTANCE'. Texture pack is now linked!" \ No newline at end of file +echo "✅ Symlink created for '$INSTANCE'. Texture pack is now linked!"