diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-04-06 16:12:57 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-04-06 16:12:57 +0200 |
commit | 5cd4678ff63c7ac7451a430fa58809fa13b7a36a (patch) | |
tree | 24be6a39221ced233a3789cfb3977c3526ba3a7d /scripts | |
parent | bfb912418564e9e9f5ae33bb6277f0c1e7d9c305 (diff) |
Add script to check which imag commands changed since they were last installed
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/which-commands-changed | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/which-commands-changed b/scripts/which-commands-changed new file mode 100755 index 00000000..62a48593 --- /dev/null +++ b/scripts/which-commands-changed @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# Find all imag commands which changed since last install + +imag versions |\ +grep "imag-" |\ +sed 's,v.*-g,,' |\ +while read binary hash; do + git diff "$hash..master" --name-only | \ + grep "$binary" >/dev/null 2>/dev/null && \ + echo "$binary changed since last install (was $hash)" +done |