Skip to content

Instantly share code, notes, and snippets.

@tmtm
Created November 14, 2021 09:11
Show Gist options
  • Save tmtm/70654e70c40fd9f54e33d8d3bc1b3e67 to your computer and use it in GitHub Desktop.
Save tmtm/70654e70c40fd9f54e33d8d3bc1b3e67 to your computer and use it in GitHub Desktop.
gem の差分を見る
#!/bin/bash
dir1=$(mktemp -d)
dir2=$(mktemp -d)
trap "rm -rf $dir1 $dir2" EXIT
cat $1 | (cd $dir1 && tar xf - && tar xf data.tar.gz && gunzip metadata.gz checksums.yaml.gz)
cat $2 | (cd $dir2 && tar xf - && tar xf data.tar.gz && gunzip metadata.gz checksums.yaml.gz)
diff --color=auto -ur $dir1 $dir2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment