diff options
author | merakor <cem@ckyln.com> | 2021-02-04 19:04:12 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-02-04 19:04:12 +0000 |
commit | 8a73450ff09538f166327ce4afba3b927dc73a70 (patch) | |
tree | 141207e480a46d8ae0d3136946d55ffc18a92ccc /spec | |
parent | 97f0a2adc1f82551b1830d41ab6bc873839031d2 (diff) | |
download | cpt-8a73450ff09538f166327ce4afba3b927dc73a70.tar.gz |
shellspec: simplify sed call
FossilOrigin-Name: 068344d7b0d20d8e1fa6a79ac2d8e7cb14d9e70ac0260545207a8714dedf0371
Diffstat (limited to 'spec')
-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" |