mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update config_menu.sh
This commit is contained in:
parent
75e7624d2a
commit
f884272f3b
@ -23,6 +23,19 @@ if ! source <(curl -sSf "$UTILS_URL"); then
|
|||||||
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
|
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
initialize_cache() {
|
||||||
|
if [ ! -f "$CACHE_FILE" ]; then
|
||||||
|
echo "{}" > "$CACHE_FILE"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
load_language() {
|
||||||
|
if [ -f "$CONFIG_FILE" ]; then
|
||||||
|
LANGUAGE=$(jq -r '.language' "$CONFIG_FILE")
|
||||||
|
fi
|
||||||
|
}
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user