mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-04 19:30:45 +01:00
update branch name check
update branch name check when fetch from version.txt
This commit is contained in:
@@ -73,6 +73,15 @@ Panel_Version=${Temp_Value:12:3}
|
||||
Panel_Build=${Temp_Value:25:1}
|
||||
|
||||
Branch_Name="v${Panel_Version}.${Panel_Build}"
|
||||
|
||||
if [[ $Branch_Name = v*.*.* ]] ; then
|
||||
echo -e "\nBranch name fetched...$Branch_Name"
|
||||
else
|
||||
echo -e "\nUnable to fetch Branch name..."
|
||||
echo -e "\nPlease try again in few moments, if this error still happens, please contact support"
|
||||
exit
|
||||
fi
|
||||
|
||||
Base_Number="1.9.3"
|
||||
|
||||
Total_RAM=$(free -m | awk '/Mem:/ { print $2 }')
|
||||
|
||||
Reference in New Issue
Block a user