From 06c85a1cfe665264b795e6e9dd375d2bd24627f2 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Mon, 24 Aug 2020 17:24:46 +0200 Subject: [PATCH] cp lang files at first run --- bin/mabox-langfiles | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/mabox-langfiles diff --git a/bin/mabox-langfiles b/bin/mabox-langfiles new file mode 100755 index 0000000..c2b5a8c --- /dev/null +++ b/bin/mabox-langfiles @@ -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 +