From 5e84f4da5f89df411ea65551fd9cd3e7a756e08f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 10 Mar 2024 19:37:53 +0100 Subject: [PATCH] Ensure to restore all previous content --- profile.archlinux | 2 ++ profile.debian | 2 ++ 2 files changed, 4 insertions(+) diff --git a/profile.archlinux b/profile.archlinux index 8829b22..7de67f2 100644 --- a/profile.archlinux +++ b/profile.archlinux @@ -28,6 +28,8 @@ if [ -d ~/.git ] && [ $(command -v git) ]; then if [ ! -f "${HOME}"/.gitconfig ]; then printf '%b\n' "Please enter Git login to get the remote homedir content" git pull + ### Ensure to recover all content + git restore . fi fi ## }}} diff --git a/profile.debian b/profile.debian index 90284e6..9b53eb4 100644 --- a/profile.debian +++ b/profile.debian @@ -28,6 +28,8 @@ if [ -d ~/.git ] && [ $(command -v git) ]; then if [ ! -f "${HOME}"/.gitconfig ]; then printf '%b\n' "Please enter Git login to get the remote homedir content" git pull + ### Ensure to recover all content + git restore . fi fi ## }}}