diff options
-rw-r--r-- | spec/02_src_spec.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/02_src_spec.sh b/spec/02_src_spec.sh index 64eaa2f..4685ec1 100644 --- a/spec/02_src_spec.sh +++ b/spec/02_src_spec.sh @@ -10,7 +10,7 @@ Describe 'Main toolchain' Describe 'cpt' Describe '--version' - VERSION=$(grep VERSION config.mk | sed 's/.* //g') + VERSION=$(sed -n '/VERSION/s/.* //gp' config.mk) It 'outputs cpt version' When run script src/cpt --version The stderr should eq "-> Carbs Packaging Tools $VERSION" |