mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
8 lines
367 B
Bash
8 lines
367 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
fgrep 'Inspec.deprecate' -r lib |cut -f2 -d'(' | cut -f1 -d',' | cut -f1 -d ')' | cut -f2 -d':' | sort -u > inspec-deprecations-in-lib.txt
|
||
|
jq -r '.groups|keys|.[]' < etc/deprecations.json | sort -u > inspec-deprecations-in-cfg.txt
|
||
|
|
||
|
echo '<< Only in cfg'
|
||
|
echo ' >> Only in lib/'
|
||
|
comm -3 inspec-deprecations-in-cfg.txt inspec-deprecations-in-lib.txt
|