From 258b532a9194c7afb3d71e9914bd852ee99a1a68 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Tue, 3 Jan 2023 17:16:54 +0100 Subject: [PATCH] Fix script. --- anime-game-wishes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/anime-game-wishes b/anime-game-wishes index 170225e..869032c 100755 --- a/anime-game-wishes +++ b/anime-game-wishes @@ -3,14 +3,14 @@ # Script to get anime game's wish history link for paimon.moe -if [ $XDG_SESSION_TYPE = "wayland" ]; - if cat -v ".local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep -m 1 "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | wl-copy -n ; then +if [ $XDG_SESSION_TYPE = "wayland" ]; then + if cat -v "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | tail -n 1 | wl-copy -n ; then quick-notify "Copied wish link" else quick-notify "Failed to copy" fi else - if cat -v ".local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep -m 1 "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | xclip -sel c ; then + if cat -v "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | tail -n 1 | xclip -sel c ; then quick-notify "Copied wish link" else quick-notify "Failed to copy"