Restoring user config
This commit is contained in:
parent
b19479e7df
commit
23e52b615d
|
@ -644,6 +644,9 @@ function restore_user_config {
|
|||
if [ -d $temp_restore_dir/home/$USERNAME/.config ]; then
|
||||
cp -r $temp_restore_dir/home/$USERNAME/.config /home/$USERNAME/
|
||||
else
|
||||
if [ ! -d /home/$USERNAME/.config ]; then
|
||||
mkdir /home/$USERNAME/.config
|
||||
fi
|
||||
cp -r $temp_restore_dir/* /home/$USERNAME/.config/
|
||||
fi
|
||||
if [ ! "$?" = "0" ]; then
|
||||
|
|
|
@ -573,6 +573,9 @@ function restore_user_config {
|
|||
if [ -d $temp_restore_dir/home/$USERNAME ]; then
|
||||
cp -r $temp_restore_dir/home/$USERNAME/.config /home/$USERNAME/
|
||||
else
|
||||
if [ ! -d /home/$USERNAME/.config ]; then
|
||||
mkdir /home/$USERNAME/.config
|
||||
fi
|
||||
cp -r $temp_restore_dir/* /home/$USERNAME/.config/
|
||||
fi
|
||||
if [ ! "$?" = "0" ]; then
|
||||
|
|
Loading…
Reference in New Issue