mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
Prevent fork bombing from cc
-> tea
symlinks
This commit is contained in:
parent
cdcd5863c1
commit
fd4fcf7fb7
2 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,9 @@ exe_path = ENV['PATH'].split(":").filter { |path|
|
|||
path != File.dirname(__FILE__)
|
||||
}.map { |path|
|
||||
"#{path}/#{exe}"
|
||||
}.reject { |path|
|
||||
# if the user created a symlink of `cc` to `tea` don’t use it
|
||||
File.symlink? path and File.basename(File.readlink(path)) == "tea"
|
||||
}.find { |path|
|
||||
File.exist?(path)
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
distributable: ~
|
||||
|
||||
# FIXME we want the c version eg. c99
|
||||
# FIXME we want the c version eg. c99
|
||||
# or should that be some kind of option? so you specify you want a cc that support c99
|
||||
versions:
|
||||
- 0.1.2
|
||||
- 0.1.3
|
||||
|
||||
dependencies:
|
||||
linux:
|
||||
|
|
Loading…
Reference in a new issue