mirror of
https://github.com/Nuzair46/SpotX-Linux.git
synced 2024-10-22 20:47:01 -06:00
Merge pull request #1 from SpotX-CLI/jetfir3-patch-1
Improve xpui detection
This commit is contained in:
commit
812e16706b
12
install.sh
12
install.sh
|
@ -96,8 +96,12 @@ echo "SpotX-Linux by @SpotX-CLI"
|
||||||
echo "**************************"
|
echo "**************************"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Handle xpui.bak and FORCE_FLAG logic
|
# xpui detection
|
||||||
if [[ "${FORCE_FLAG}" == "false" ]]; then
|
if [[ ! -f "${XPUI_SPA}" ]]; then
|
||||||
|
echo "xpui not found, skipping xpui patches..."
|
||||||
|
XPUI_SKIP="true"
|
||||||
|
else
|
||||||
|
if [[ "${FORCE_FLAG}" == "false" ]]; then
|
||||||
if [[ -f "${XPUI_BAK}" ]]; then
|
if [[ -f "${XPUI_BAK}" ]]; then
|
||||||
echo "SpotX backup found, SpotX has already been used on this install."
|
echo "SpotX backup found, SpotX has already been used on this install."
|
||||||
echo -e "Re-run SpotX using the '-f' flag to force xpui patching.\n"
|
echo -e "Re-run SpotX using the '-f' flag to force xpui patching.\n"
|
||||||
|
@ -107,7 +111,7 @@ if [[ "${FORCE_FLAG}" == "false" ]]; then
|
||||||
echo "Creating xpui backup..."
|
echo "Creating xpui backup..."
|
||||||
cp "${XPUI_SPA}" "${XPUI_BAK}"
|
cp "${XPUI_SPA}" "${XPUI_BAK}"
|
||||||
XPUI_SKIP="false"; fi
|
XPUI_SKIP="false"; fi
|
||||||
else
|
else
|
||||||
if [[ -f "${XPUI_BAK}" ]]; then
|
if [[ -f "${XPUI_BAK}" ]]; then
|
||||||
echo "Backup xpui found, restoring original..."
|
echo "Backup xpui found, restoring original..."
|
||||||
rm "${XPUI_SPA}"
|
rm "${XPUI_SPA}"
|
||||||
|
@ -116,7 +120,7 @@ else
|
||||||
else
|
else
|
||||||
echo "Creating xpui backup..."
|
echo "Creating xpui backup..."
|
||||||
cp "${XPUI_SPA}" "${XPUI_BAK}"
|
cp "${XPUI_SPA}" "${XPUI_BAK}"
|
||||||
XPUI_SKIP="false"; fi; fi
|
XPUI_SKIP="false"; fi; fi; fi
|
||||||
|
|
||||||
# Extract xpui.spa
|
# Extract xpui.spa
|
||||||
if [[ "${XPUI_SKIP}" == "false" ]]; then
|
if [[ "${XPUI_SKIP}" == "false" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user