From 8f71084c0fe68c3ef390a7a6e23731f3522e6dde Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 18 Sep 2021 11:54:49 +0200 Subject: [PATCH] Manager: Fix copying of directories when adding new files --- dotfiles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles.sh b/dotfiles.sh index 168ef2e..df1c7e2 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -165,11 +165,11 @@ fileAdd() # /home// if [ -n "$fileCutHome" ]; then mkdir -p "$(pwd)/$(dirname "$fileCutHome")" - cp -a "$file" "$(pwd)/$fileCutHome" + cp -a "$file" "$(pwd)/$(dirname "$fileCutHome")" # / else sudo mkdir -p "$(pwd)/$(dirname "$file")" - sudo cp -a "$file" "$(pwd)/$file" + sudo cp -a "$file" "$(pwd)/$(dirname "$file")" fi }