cp lang files at first run

master
Daniel Napora 2020-08-24 17:24:46 +02:00
parent 239c8ba258
commit 06c85a1cfe
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/bin/bash
#
#
FILE="$HOME/.config/mabox/.lang"
if [ ! -f "$FILE" ]; then
case $LANG in
pl*)
rsync -a /usr/share/mabox/lang/pl/ $HOME/.config/
;;
es*)
rsync -a /usr/share/mabox/lang/es/ $HOME/.config/
;;
*)
exit 0
;;
esac
touch $HOME/.config/mabox/.lang
fi