From 327617b9bcea0e09e42e32d15df573fb6b763f27 Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Wed, 9 Sep 2026 12:05:15 -0400 Subject: [PATCH] Handle SPA root entries --- spotx.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spotx.sh b/spotx.sh index 3fb5214..47d92bc 100644 --- a/spotx.sh +++ b/spotx.sh @@ -1091,7 +1091,11 @@ xpui_open() { rm -rf "${xpuiDir}" 2>/dev/null mkdir -p "${xpuiDir}" xpuiTempCreated='true' - unzip -qq "${xpuiSpa}" -d "${xpuiDir}" || { + unzip -qq "${xpuiSpa}" -d "${xpuiDir}" 2>/dev/null || { + rm -rf "${xpuiDir}" 2>/dev/null + mkdir -p "${xpuiDir}" + unzip -qq "${xpuiSpa}" -x / -d "${xpuiDir}" + } || { rm -rf "${xpuiDir}" 2>/dev/null echo -e "\n${red}Error:${clr} Failed to unpack xpui.spa. Reinstall client. Exiting...\n" >&2 exit 1