prism inconsistencies lmaooo
parent
f7024ffe4c
commit
c8b1cdef43
17
install.sh
17
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: ")
|
INSTANCE=$(find "$INSTANCE_DIR" -mindepth 1 -maxdepth 1 -type d | fzf --prompt "Select Minecraft Instance: ")
|
||||||
|
|
||||||
if [ -z "$INSTANCE" ]; then
|
if [ -z "$INSTANCE" ]; then
|
||||||
|
|
@ -20,4 +33,4 @@ mkdir -p "$RESOURCE_PACKS_DIR"
|
||||||
# ln -sf "$(pwd)/PloofPack.zip" "$RESOURCE_PACKS_DIR/PloofPack.zip"
|
# ln -sf "$(pwd)/PloofPack.zip" "$RESOURCE_PACKS_DIR/PloofPack.zip"
|
||||||
cp 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!"
|
echo "✅ Symlink created for '$INSTANCE'. Texture pack is now linked!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue