Polish up wfinfo script

This commit is contained in:
2025-11-09 13:57:20 -06:00
parent c84b1481d8
commit c05183362d

View File

@@ -15,24 +15,28 @@
# #
# Assumes Flatpak Steam # 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" 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 if ! [ -e "$logfile" ]; then
echo "Could not find logfile: $logfile" echo "Could not find logfile: $logfile"
exit 1 exit 1
fi fi
if ! [ -e "$wfinfo" ]; then if ! [ -e "$wfinfo" ]; then
echo "Could not find wfinfo -- is it installed?" echo "Could not find wfinfo -- is it installed?"
exit 2 exit 2
elif ! [ -x "$winfo" ]; then fi
echo "wfinfo exists but isn't executable? What'd you do?" if ! [ -e "$update" ]; then
echo "Update script doesn't exist: $update"
exit 3 exit 3
fi fi
"$update"
exec toolbox run \ exec toolbox run \
--container wfinfo-ng \ --container wfinfo-ng \
~/.cargo/bin/wfinfo \ "$wfinfo" \
--window-name "Warframe" \ --window-name "Warframe" \
"$logfile" "$logfile"