fix Rscons.set_suffix to append the given suffix if the filename has none
This commit is contained in:
1 parent
8142d0bbc8
commit
d28722a4bb
3 files changed
+15
-1
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ module Rscons
|
||||
#
|
||||
# @return [String] New path.
|
||||
def self.set_suffix(path, suffix)
|
||||
path.sub(/\.[^.]*$/, suffix)
|
||||
path.sub(/\.[^.]*$/, "") + suffix
|
||||
end
|
||||
|
||||
# Return the system shell and arguments for executing a shell command.
|
||||
|
||||
Reference in new issue
Block a user