diff options
author | Freya Murphy <freya@freyacat.org> | 2024-04-09 18:22:44 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-04-09 18:22:44 -0400 |
commit | cc6a9cc422621d0c7bd53600c6ddc217bb404061 (patch) | |
tree | 73ee1fe26a3eb41277e3f597e400072df11e19da /.local | |
parent | undo a (diff) | |
download | dotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.tar.gz dotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.tar.bz2 dotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.zip |
a again
Diffstat (limited to '.local')
-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" |