Skip to content
Snippets Groups Projects
Commit 002a0eb9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Return text

parent e297a134
No related branches found
No related tags found
No related merge requests found
......@@ -146,8 +146,7 @@ function rsync_setting_remote {
translations_file="/var/www/${local_hostname}/htdocs/admin/translations/${DEFAULT_LANGUAGE}.txt"
if [ -f "$translations_file" ]; then
if grep -q "${text}|" "$translations_file"; then
grep "${text}|" "$translations_file" | head -n 1 | awk -F '|' '{print $2}'
return
text=$(grep "${text}|" "$translations_file" | head -n 1 | awk -F '|' '{print $2}')
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment