diff options
Diffstat (limited to '.local/bin/dotfiles')
-rwxr-xr-x | .local/bin/dotfiles | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles index 5612f17..dd690da 100755 --- a/.local/bin/dotfiles +++ b/.local/bin/dotfiles @@ -45,11 +45,10 @@ root_dir() { } root_file() { - dir=$(basename "$1") + dir=$(dirname "$1") mkdir -p "$HOME/.root$dir" cp "$1" "$HOME/.root$dir" - $config add "$HOME/.root$dir" - rm -fr "$HOME/.root$dir" + $config add "$HOME/.root$1" } root_dir /etc/initcpio/post @@ -65,3 +64,4 @@ $config add "$packages" rm "$aur" rm "$packages" +rm -fr "$HOME/.root" |