File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 38
38
dir_config 'libsass'
39
39
40
40
libsass_version = Dir . chdir ( libsass_dir ) do
41
- if File . exist? ( 'VERSION' )
42
- File . read ( 'VERSION' ) . chomp
43
- elsif File . exist? ( '.git' )
41
+ if File . exist? ( '.git' )
44
42
ver = %x[git describe --abbrev=4 --dirty --always --tags] . chomp
45
43
File . write ( 'VERSION' , ver )
46
44
ver
47
45
end
46
+ File . read ( 'VERSION' ) . chomp if File . exist? ( 'VERSION' )
48
47
end
49
48
50
49
if libsass_version
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Gem::Specification.new do |spec|
48
48
end
49
49
50
50
# Write a VERSION file for non-binary gems (for `SassC::Native.version`).
51
- if ! File . exist? ( File . join ( libsass_dir , 'VERSION ' ) )
51
+ if File . exist? ( File . join ( libsass_dir , '.git ' ) )
52
52
libsass_version = Dir . chdir ( libsass_dir ) do
53
53
%x[git describe --abbrev=4 --dirty --always --tags] . chomp
54
54
end
You can’t perform that action at this time.
0 commit comments