forked from Shinonome/dots-hyprland
Rename func in diagnose
This commit is contained in:
@@ -36,7 +36,7 @@ _exec() {
|
|||||||
"$@"
|
"$@"
|
||||||
err=$?;if [ ! $err -eq 0 ];then echo "[---EXIT $err---]";else echo "[---SUCCESS---]";fi
|
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
|
OS_RELEASE_FILE=/etc/os-release
|
||||||
if [[ -f "$OS_RELEASE_FILE" ]]; then
|
if [[ -f "$OS_RELEASE_FILE" ]]; then
|
||||||
OS_DISTRO_ID=$(awk -F'=' '/^ID=/ { gsub("\"","",$2); print tolower($2) }' ${OS_RELEASE_FILE} 2> /dev/null)
|
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."
|
echo "$OS_RELEASE_FILE does not exist."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
ii_check_distro() {
|
_check_distro() {
|
||||||
lsb_release -a || cat /etc/os-release || cat /etc/lsb-release
|
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
|
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
|
||||||
which python
|
which python
|
||||||
deactivate
|
deactivate
|
||||||
}
|
}
|
||||||
ii_check_quickshell_version() {
|
_check_quickshell_version() {
|
||||||
pacman -Q | grep -E 'quickshell|qt6-base'
|
pacman -Q | grep -E 'quickshell|qt6-base'
|
||||||
}
|
}
|
||||||
ii_check_PKGBUILD_version() {
|
_check_PKGBUILD_version() {
|
||||||
pacman -Q | grep '^illogical-impulse-'
|
pacman -Q | grep '^illogical-impulse-'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,8 +69,8 @@ x git status
|
|||||||
x git submodule status --recursive
|
x git submodule status --recursive
|
||||||
|
|
||||||
e "Checking distro"
|
e "Checking distro"
|
||||||
x ii_check_distro_id
|
x _check_distro_id
|
||||||
#x ii_check_distro
|
#x _check_distro
|
||||||
|
|
||||||
e "Checking variables"
|
e "Checking variables"
|
||||||
x declare -p XDG_CACHE_HOME # ~/.cache
|
x declare -p XDG_CACHE_HOME # ~/.cache
|
||||||
@@ -91,8 +91,8 @@ x ls -l ~/.local/state/quickshell/.venv
|
|||||||
|
|
||||||
e "Checking versions"
|
e "Checking versions"
|
||||||
x Hyprland --version
|
x Hyprland --version
|
||||||
x ii_check_quickshell_version
|
x _check_quickshell_version
|
||||||
x ii_check_PKGBUILD_version
|
x _check_PKGBUILD_version
|
||||||
|
|
||||||
e "Finished. Output saved as \"$output_file\"."
|
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
|
if ! command -v curl 2>&1 >>/dev/null ;then echo "\"curl\" not found, pastebin upload unavailable.";exit;fi
|
||||||
|
|||||||
Reference in New Issue
Block a user