Rename func in diagnose

This commit is contained in:
Celestial.y
2025-11-13 07:44:32 +08:00
committed by GitHub
parent 3e4674d651
commit 8d1fe864ad
+9 -9
View File
@@ -36,7 +36,7 @@ _exec() {
"$@"
err=$?;if [ ! $err -eq 0 ];then echo "[---EXIT $err---]";else echo "[---SUCCESS---]";fi
}
ii_check_distro_id() {
_check_distro_id() {
OS_RELEASE_FILE=/etc/os-release
if [[ -f "$OS_RELEASE_FILE" ]]; then
OS_DISTRO_ID=$(awk -F'=' '/^ID=/ { gsub("\"","",$2); print tolower($2) }' ${OS_RELEASE_FILE} 2> /dev/null)
@@ -47,18 +47,18 @@ ii_check_distro_id() {
echo "$OS_RELEASE_FILE does not exist."
fi
}
ii_check_distro() {
_check_distro() {
lsb_release -a || cat /etc/os-release || cat /etc/lsb-release
}
ii_check_venv() {
_check_venv() {
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
which python
deactivate
}
ii_check_quickshell_version() {
_check_quickshell_version() {
pacman -Q | grep -E 'quickshell|qt6-base'
}
ii_check_PKGBUILD_version() {
_check_PKGBUILD_version() {
pacman -Q | grep '^illogical-impulse-'
}
@@ -69,8 +69,8 @@ x git status
x git submodule status --recursive
e "Checking distro"
x ii_check_distro_id
#x ii_check_distro
x _check_distro_id
#x _check_distro
e "Checking variables"
x declare -p XDG_CACHE_HOME # ~/.cache
@@ -91,8 +91,8 @@ x ls -l ~/.local/state/quickshell/.venv
e "Checking versions"
x Hyprland --version
x ii_check_quickshell_version
x ii_check_PKGBUILD_version
x _check_quickshell_version
x _check_PKGBUILD_version
e "Finished. Output saved as \"$output_file\"."
if ! command -v curl 2>&1 >>/dev/null ;then echo "\"curl\" not found, pastebin upload unavailable.";exit;fi