Skip to content

Commit

Permalink
fix a bug in install where backup tries to copy zsh rcs from the curr…
Browse files Browse the repository at this point in the history
…ent directory instead of $HOME; see #57
  • Loading branch information
romkatv committed Oct 23, 2020
1 parent d05e283 commit e529fb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ umask o-w

if '[' '-n' "$backup_dir" ']'; then
'command' 'mkdir' '-p' '--' "$backup_dir"
for f in $rcs; do
'command' 'cp' '--' "$f" "$backup_dir"/
done
('cd' && 'command' 'cp' '--' $rcs "$backup_dir"/) || 'exit'
fi

if '[' '-n' "$rcs" ']'; then
Expand Down

0 comments on commit e529fb3

Please sign in to comment.