fix(gnome-extensions): Non-installed languages regression

Regression was with this fix I thought was working:
4ac40ed042
This commit is contained in:
fiftydinar 2025-04-22 18:45:22 +02:00 committed by GitHub
parent ab1c701ccb
commit 0beaa1738b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ if [[ ${#INSTALL[@]} -gt 0 ]]; then
# So that's why I made a check for directory
# I made an additional check if language files are available, in case if extension is packaged with an empty folder, like with Default Workspace extension
if [[ -d "${TMP_DIR}/locale" ]]; then
if ls "${TMP_DIR}/locale/"*.mo 1> /dev/null 2>&1; then
if find "${TMP_DIR}/locale/" -type f -name "*.mo" | grep -q .; then
echo "Installing language extension files"
install -d -m 0755 "/usr/share/locale/"
cp -r "${TMP_DIR}/locale"/* "/usr/share/locale/"
@ -226,7 +226,7 @@ if [[ ${#INSTALL[@]} -gt 0 ]] && ! "${LEGACY}"; then
# So that's why I made a check for directory
# I made an additional check if language files are available, in case if extension is packaged with an empty folder, like with Default Workspace extension
if [[ -d "${TMP_DIR}/locale" ]]; then
if ls "${TMP_DIR}/locale/"*.mo 1> /dev/null 2>&1; then
if find "${TMP_DIR}/locale/" -type f -name "*.mo" | grep -q .; then
echo "Installing language extension files"
install -d -m 0755 "/usr/share/locale/"
cp -r "${TMP_DIR}/locale"/* "/usr/share/locale/"