You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/server/ruby/bin/sonic-pi-server.rb
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,27 @@
71
71
## exist so the user has a starting point for
72
72
## modifying them.
73
73
74
+
75
+
begin
76
+
ifFile.exists?(original_init_path)
77
+
if(File.exists?(init_path))
78
+
STDOUT.puts"Warning, you have an older init.rb file in #{original_init_path} which is now being ignored as your newer config/init.rb file is being used insted. Consider deleting your old init.rb (perhaps copying anything useful across first)."
79
+
else
80
+
STDOUT.puts"Found init.rb in old location #{original_init_path}. Moving it to the new config directory #{init_path}."
81
+
FileUtils.mv(original_init_path,init_path)
82
+
end
83
+
end
84
+
rescueException=>e
85
+
STDOUT.puts"Warning: exception when comparing new and original init.rb paths"
0 commit comments