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