Update debug and vars scripts

This commit is contained in:
Castro-Fidel
2019-11-29 23:02:35 +03:00
parent f9a03c4fcd
commit 97f0c1e215
17 changed files with 143 additions and 233 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
if [ ! -f "${config_path}/${portname}_ver" ]
then
echo "10" > "${config_path}/${portname}_ver"
@ -61,11 +62,6 @@ else
else
case $xsd2 in
"${port_time4}")
if [ "${update_loc}" = "ENG" ]
then
urlg="https://www.patreon.com/portwinelinux"
fi
if [ ! -z "$(command -v sensible-browser)" ]; then
sensible-browser "$urlg" &
elif [ ! -z "$(command -v xdg-open)" ]; then
@ -75,12 +71,12 @@ else
elif [ ! -z "$(command -v python)" ]; then
python -m webbrowser "$urlg"
fi &
echo "90" > "${HOME}/.config/.PortTime"
echo "150" > "${HOME}/.config/.PortTime"
sleep 5 ;;
"${port_time5}")
echo "30" > "${HOME}/.config/.PortTime" ;;
"${port_time6}")
echo "60" > "${HOME}/.config/.PortTime" ;;
echo "80" > "${HOME}/.config/.PortTime" ;;
esac
fi
fi