Skip to content

Commit f517f41

Browse files
committed
Remove scl_source
1 parent f918cb8 commit f517f41

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

ondemand/initializers/dashboard.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,3 @@
55
unless Dir.exists?(dest)
66
FileUtils.copy_entry src, dest
77
end
8-
9-
load_scl = <<EOF
10-
11-
if [[ ${HOSTNAME%%.*} == ondemand ]]
12-
then
13-
source scl_source enable ondemand
14-
fi
15-
16-
EOF
17-
18-
profile = File.join(Dir.home, ".bash_profile")
19-
if File.file?(profile) && File.readable?(profile) && File.writable?(profile) && ! File.read(profile).include?("source scl_source enable ondemand")
20-
File.open(profile, "a") {|f| f.write(load_scl) }
21-
end

0 commit comments

Comments
 (0)