Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-09-10 19:58:33 +0300
committerGitHub <noreply@github.com>2020-09-10 19:58:33 +0300
commit665c7698315cd3c70fb8b971de305d34eb860cce (patch)
treee88785c4889d34b4d7fb47a35c0ca1d85894acfd /addons/locales.sh
parentd20170b2cda0bb90c8a7cc3552d6bbb4ac807097 (diff)
some things to discuss after chain libraries (#1438)
Co-authored-by: Daniel Hansson <github@hanssonit.se>
Diffstat (limited to 'addons/locales.sh')
-rw-r--r--addons/locales.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/addons/locales.sh b/addons/locales.sh
index 9ff486fc..5b237da5 100644
--- a/addons/locales.sh
+++ b/addons/locales.sh
@@ -5,11 +5,8 @@
# shellcheck disable=2034,2059,1091
true
SCRIPT_NAME="Locales"
-
# shellcheck source=lib.sh
-source /var/scripts/fetch_lib.sh &>/dev/null || . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) &>/dev/null
-
-###################################
+source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
### TODO Remove this after some releases
# Download fetch_lib.sh to be able to use it
@@ -18,9 +15,17 @@ then
download_script STATIC fetch_lib
fi
+# Check for errors + debug code and abort if something isn't right
+# 1 = ON
+# 0 = OFF
+DEBUG=0
+debug_mode
+
# Must be root
root_check
+##################################################################
+
# Set locales
print_text_in_color "$ICyan" "Setting locales..."
if [ "$KEYBOARD_LAYOUT" = "us" ]