Add default description for nl-NL

This commit is contained in:
Benoit Marty 2022-01-25 19:05:20 +01:00
parent d9ba4c9c7c
commit 76599af088
1 changed files with 13 additions and 0 deletions

View File

@ -32,6 +32,15 @@ mv ./fastlane/metadata/android/nb ./fastlane_tmp
# Fastlane / PlayStore require longDescription and shortDescription file to be set, so copy the default # Fastlane / PlayStore require longDescription and shortDescription file to be set, so copy the default
# one for languages where they are missing # one for languages where they are missing
echo "Copying default description when missing" echo "Copying default description when missing"
if [[ -f "./fastlane/metadata/android/nl-NL/full_description.txt" ]]; then
echo "It appears that file ./fastlane/metadata/android/nl-NL/full_description.txt now exists. This can be removed."
removeFullDes_nl=0
else
echo "Copy default full description to ./fastlane/metadata/android/nl-NL"
cp ./fastlane/metadata/android/en-US/full_description.txt ./fastlane/metadata/android/nl-NL
removeFullDes_nl=1
fi
if [[ -f "./fastlane/metadata/android/ro/full_description.txt" ]]; then if [[ -f "./fastlane/metadata/android/ro/full_description.txt" ]]; then
echo "It appears that file ./fastlane/metadata/android/ro/full_description.txt now exists. This can be removed." echo "It appears that file ./fastlane/metadata/android/ro/full_description.txt now exists. This can be removed."
removeFullDes_ro=0 removeFullDes_ro=0
@ -78,6 +87,10 @@ mv ./fastlane_tmp/* ./fastlane/metadata/android/
# Delete the tmp folder (should be empty) # Delete the tmp folder (should be empty)
rmdir ./fastlane_tmp rmdir ./fastlane_tmp
if [[ ${removeFullDes_nl} -eq 1 ]]; then
rm ./fastlane/metadata/android/nl-NL/full_description.txt
fi
if [[ ${removeFullDes_ro} -eq 1 ]]; then if [[ ${removeFullDes_ro} -eq 1 ]]; then
rm ./fastlane/metadata/android/ro/full_description.txt rm ./fastlane/metadata/android/ro/full_description.txt
fi fi