git/t/chainlint/function.expect

12 строки
196 B
Plaintext

sha1_file ( ) {
echo "$*" | sed "s#..#.git/objects/&/#"
} &&
remove_object ( ) {
file=$(sha1_file "$*") &&
test -e "$file" ?!AMP?!
rm -f "$file"
} ?!AMP?!
sha1_file arg && remove_object arg