1
0

Added script to automatically update language files

This commit is contained in:
Christer Waren 2020-02-13 00:23:35 +02:00
parent 704d608ff8
commit 05234b30be

31
script.sh Normal file
View File

@ -0,0 +1,31 @@
rm opencart-languagepack-finnish -rf
git clone https://gitea.cwinfo.org/cwchristerw/opencart-languagepack-finnish.git opencart-languagepack-finnish
if [ -d "admin" ];
then
if [ -d "admin/language/fi" ];
then
rm admin/language/fi -rf
fi
cp -r opencart-languagepack-finnish/admin admin/language/fi
fi
if [ -d "catalog" ];
then
if [ -d "catalog/language/fi" ];
then
rm catalog/language/fi -rf
fi
cp -r opencart-languagepack-finnish/catalog catalog/language/fi
fi
if [ -d "install" ];
then
if [ -d "install/language/fi" ];
then
rm install/language/fi -rf
fi
cp -r opencart-languagepack-finnish/install install/language/fi
fi
rm opencart-languagepack-finnish -rf