mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
commit
88bfc2c140
2 changed files with 3 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ os:
|
|||
rvm:
|
||||
- 2.5
|
||||
- 2.6
|
||||
- 2.7
|
||||
|
||||
before_install:
|
||||
- gem update --system
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
def existing_symlink(source, destination)
|
||||
return if File.readlink(destination).eql?(source)
|
||||
|
||||
# rubocop:disable Metrics/LineLength
|
||||
# rubocop:disable Layout/LineLength
|
||||
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
|
||||
File.unlink(destination)
|
||||
puts "Linking #{destination} to #{source}"
|
||||
|
|
@ -12,7 +12,7 @@ def existing_symlink(source, destination)
|
|||
else
|
||||
puts "#{destination} is unchanged"
|
||||
end
|
||||
# rubocop:enable Metrics/LineLength
|
||||
# rubocop:enable Layout/LineLength
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue