Browse Source

Manager: Fix copying of directories when adding new files

master
Riyyi 3 years ago
parent
commit
8f71084c0f
  1. 4
      dotfiles.sh

4
dotfiles.sh

@ -165,11 +165,11 @@ fileAdd()
# /home/<user>/ # /home/<user>/
if [ -n "$fileCutHome" ]; then if [ -n "$fileCutHome" ]; then
mkdir -p "$(pwd)/$(dirname "$fileCutHome")" mkdir -p "$(pwd)/$(dirname "$fileCutHome")"
cp -a "$file" "$(pwd)/$fileCutHome" cp -a "$file" "$(pwd)/$(dirname "$fileCutHome")"
# / # /
else else
sudo mkdir -p "$(pwd)/$(dirname "$file")" sudo mkdir -p "$(pwd)/$(dirname "$file")"
sudo cp -a "$file" "$(pwd)/$file" sudo cp -a "$file" "$(pwd)/$(dirname "$file")"
fi fi
} }

Loading…
Cancel
Save