You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local _group=`cat /etc/group | grep ${_gid} | cut -d: -f1 | head -1`
local _dir="/home/${_user}/.config"
if [[ ! -d "${_dir}/berry" ]]; then
echo -e "\n[*] Copying berry config files into ${_dir}..."
mkdir -p ${_dir}/berry
cp -rf /etc/skel/.config/berry/* ${_dir}/berry/
chown -R ${_user}:${_group} ${_dir}/berry
if [[ -d "${_dir}/berry" ]]; then
echo -e "[*] Done!\n"
else
echo -e "[*] Failed!\n"
fi
else
echo -e "\n[*] Configurations for berry already exist in your config dir.\n Please copy the config files manually from '/etc/skel/.config/berry' before you login into berry.\n"