From c05183362d6964977d9455c79d61ef1b3932b21c Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 9 Nov 2025 13:57:20 -0600 Subject: [PATCH] Polish up wfinfo script --- wfinfo-ng | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/wfinfo-ng b/wfinfo-ng index e9d6e19..fb81d45 100755 --- a/wfinfo-ng +++ b/wfinfo-ng @@ -15,24 +15,28 @@ # # Assumes Flatpak Steam -wfinfo="$HOME/.cargo/bin/wfinfo-ng" +wfinfo="$HOME/.cargo/bin/wfinfo" +update="$HOME/Projects/wfinfo-ng/update.sh" logfile="$HOME/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps/compatdata/230410/pfx/drive_c/users/steamuser/AppData/Local/Warframe/EE.log" +# Basline tests if ! [ -e "$logfile" ]; then echo "Could not find logfile: $logfile" exit 1 fi - if ! [ -e "$wfinfo" ]; then echo "Could not find wfinfo -- is it installed?" exit 2 -elif ! [ -x "$winfo" ]; then - echo "wfinfo exists but isn't executable? What'd you do?" +fi +if ! [ -e "$update" ]; then + echo "Update script doesn't exist: $update" exit 3 fi +"$update" + exec toolbox run \ --container wfinfo-ng \ - ~/.cargo/bin/wfinfo \ + "$wfinfo" \ --window-name "Warframe" \ "$logfile"