mabox-tools/bin/mabox-langfiles

20 lines
319 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/.config/
;;
es*)
rsync -a /usr/share/mabox/lang/es/ $HOME/.config/
;;
*)
exit 0
;;
esac
touch $HOME/.config/mabox/.lang
fi