Skip to content

Commit

Permalink
Merge pull request #170 from ubccr/fix-166
Browse files Browse the repository at this point in the history
Remove scl_source
  • Loading branch information
aebruno authored Jul 14, 2023
2 parents 25a6b79 + f517f41 commit b620740
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ondemand/initializers/dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,3 @@
unless Dir.exists?(dest)
FileUtils.copy_entry src, dest
end

load_scl = <<EOF
if [[ ${HOSTNAME%%.*} == ondemand ]]
then
source scl_source enable ondemand
fi
EOF

profile = File.join(Dir.home, ".bash_profile")
if File.file?(profile) && File.readable?(profile) && File.writable?(profile) && ! File.read(profile).include?("source scl_source enable ondemand")
File.open(profile, "a") {|f| f.write(load_scl) }
end

0 comments on commit b620740

Please sign in to comment.