mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
6ccc8aad26
PR #2311 updated the Rubocop engine to use Ruby 2.3 to evaluate, and the default behavior is to no longer require `.freeze` to be added to string literals that are treated like constants. This caused the pattern match used in the Expeditor version update script to no longer work. Also manually fixing the `lib/inspec/version.rb` file to be correct. Signed-off-by: Adam Leff <adam@leff.co>
9 lines
279 B
Bash
Executable file
9 lines
279 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
|
|
# It then executes this file to update any other files/components with that new version.
|
|
#
|
|
|
|
set -evx
|
|
|
|
sed -i -r "s/VERSION = '.*'/VERSION = '$(cat VERSION)'/" lib/inspec/version.rb
|