Compare commits
2
Commits
6a15334b9d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ca3e19117 | ||
|
|
4b2e40c59f |
@@ -9,6 +9,8 @@ source "$(dirname "$0")/i18n.sh"
|
||||
|
||||
# Funktion für später, um z.B. zenity statt whiptail zu nutzen.
|
||||
|
||||
possiblelangfolder=$(find ~ -type f -wholename "*lang/$language/config.lang" 2>/dev/null | sed 's/en_US\/config.lang//g')
|
||||
|
||||
if ! [ -f "$language_folder"/"$language"/config.lang ]; then
|
||||
real_language_Folder=$(whiptail --title "Could not find language folder" --inputbox "WARNING!! Language folder could not be found. Please type the Path to the language folder or else, the script will try to get the language from Github (could be buggy)\nPossible Path: $possiblelangfolder" 16 100 3>&1 1>&2 2>&3 | sed -e "s#/#\\\/#g")
|
||||
sed -i "s/language_folder=.*/language_folder=$real_language_Folder/g" "$JDAutoConfig"
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
config=$(find ~ -type f -name "JDAutoConfig" 2>/dev/null)
|
||||
log=$(grep "log=" "$config" | sed 's/.*=//g')
|
||||
JDAutoConfig=$(find ~ -type f -name "JDAutoConfig" 2>/dev/null)
|
||||
log=$(grep "log=" "$JDAutoConfig" | sed 's/.*=//g')
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "$config"
|
||||
source "$JDAutoConfig"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "$(dirname "$0")/i18n.sh"
|
||||
|
||||
Reference in New Issue
Block a user