mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
A little cleaner
This commit is contained in:
parent
8b465e78f1
commit
287fff9f45
1 changed files with 0 additions and 4 deletions
|
|
@ -48,8 +48,6 @@ task = prompt.select('What would you like to do?', %w[copy link])
|
|||
case task
|
||||
when 'copy'
|
||||
if prompt.yes?('Are you sure you want to copy these files?')
|
||||
puts 'Copying files...'
|
||||
|
||||
@files_copy.each do |file|
|
||||
unless @excludes.include?(File.basename(file))
|
||||
puts "Copying #{file} to #{@home}/.#{File.basename(file)}"
|
||||
|
|
@ -61,8 +59,6 @@ when 'copy'
|
|||
|
||||
when 'link'
|
||||
if prompt.yes?('Shall we continue?')
|
||||
puts 'Creating symlinks...'
|
||||
|
||||
@files_link.each do |file|
|
||||
unless @excludes.include?(File.basename(file))
|
||||
puts "Linking #{@home}/.#{File.basename(file)} to #{file}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue