Indentations cleanup.

This commit is contained in:
Maxim Khlobystov 2017-10-21 21:30:24 -04:00 committed by GitHub
parent 03eced3236
commit 6dd484db4f

View File

@ -34,9 +34,9 @@ else
LOCALE=$( echo "$l" | tr -d '[:space:]' )
TRANSLATION=$(curl -L --user "$USER":"$PW" -X GET "https://www.transifex.com/api/2/project/bigbluebutton-html5/resource/enjson/translation/$LOCALE/?mode=onlytranslated&file")
NO_EMPTY_STRINGS=$(echo "$TRANSLATION" | sed '/: \"\"/D' | sed '/}$/D')
NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//')
echo "$NO_TRAILING_COMMA" > ./private/locales/"$LOCALE".json
echo -e "\n}\n" >> ./private/locales/"$LOCALE".json
NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//')
echo "$NO_TRAILING_COMMA" > ./private/locales/"$LOCALE".json
echo -e "\n}\n" >> ./private/locales/"$LOCALE".json
echo -e "Added translation file $LOCALE.json : ${GREEN}${NC}"
done
else
@ -47,8 +47,8 @@ else
else
NO_EMPTY_STRINGS=$(echo "$TRANSLATION" | sed '/: \"\"/D' | sed '/}$/D')
NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,//')
echo "$NO_TRAILING_COMMA" > ./private/locales/"$ARG".json
echo -e "\n}\n" >> ./private/locales/"$ARG".json
echo "$NO_TRAILING_COMMA" > ./private/locales/"$ARG".json
echo -e "\n}\n" >> ./private/locales/"$ARG".json
echo -e "Added translation file $ARG.json :${GREEN}${NC}"
fi
fi