diff --git a/linux-x64/phserver/phserver.sh b/linux-x64/phserver/phserver.sh index f56358a..6074c49 100755 --- a/linux-x64/phserver/phserver.sh +++ b/linux-x64/phserver/phserver.sh @@ -22,11 +22,13 @@ if [ -f /etc/os-release ]; then if [[ "${NAME}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then echo "Detected UOS V20, running with ablrun..." + bash# 定义 ablrun 的完整路径 + ABLRUN="$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun" # 检查 ablrun 是否可用 - if command -v ablrun &> /dev/null; then - $(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun "${APPIMAGE}" "$@" + if [[ -x "${ABLRUN}" ]]; then + "${ABLRUN}" "${APPIMAGE}" "$@" else - echo "Warning: ablrun command not available, trying direct execution..." + echo "Warning: ablrun not found at ${ABLRUN}, trying direct execution..." "${APPIMAGE}" "$@" fi else