Added script to automatically update language files
This commit is contained in:
parent
704d608ff8
commit
05234b30be
31
script.sh
Normal file
31
script.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user