mabox-tools/bin/mabox-langfiles

23 lines
373 B
Bash
Executable File

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