Prepend https to domains
This commit is contained in:
parent
d182906ee1
commit
9737d2cc45
|
@ -88,6 +88,13 @@ function android_update_apps {
|
|||
read_config_param "${app_name_upper}_DOMAIN_NAME"
|
||||
test_domain_name="${app_name_upper}_DOMAIN_NAME"
|
||||
domain_name=${!test_domain_name}
|
||||
if [ "$domain_name" ]; then
|
||||
if [[ "$domain_name" != *'.onion' ]]; then
|
||||
domain_name="https://${!test_domain_name}"
|
||||
else
|
||||
domain_name="http://${!test_domain_name}"
|
||||
fi
|
||||
fi
|
||||
if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
|
||||
{ echo ' {';
|
||||
echo " \"name\": \"${app_name}\",";
|
||||
|
|
Loading…
Reference in New Issue