Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jun 30, 2024
1 parent ab929e7 commit e430066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ function get_release_version() {

function hiddifypanel_path() {
activate_python_venv
python -c "import os,hiddifypanel;print(os.path.dirname(hiddifypanel.__file__),end='')"
python -c "import os,hiddifypanel;print(os.path.dirname(hiddifypanel.__file__),end='')" 2>&1 || echo "panel is not installed yet."
}
function get_installed_panel_version() {
version=$(cat "$(hiddifypanel_path)/VERSION")
version=$(cat "$(hiddifypanel_path)/VERSION" 2>/dev/null)
if [ -z "$version" ]; then
version="-"
fi
echo $version
}
function get_installed_config_version() {
version=$(cat /opt/hiddify-manager/VERSION)
version=$(cat /opt/hiddify-manager/VERSION 2>/dev/null)

if [ -z "$version" ]; then
version="-"
Expand Down

0 comments on commit e430066

Please sign in to comment.