You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
300 B
15 lines
300 B
rm -rf /tmp/a/diff.tgz /tmp/b/diff.tgz
|
|
for i in $(diff -rq /tmp/a/ /tmp/b/ | grep Only | awk '{print $NF}')
|
|
do
|
|
mv /tmp/b/$i /tmp/IOTContainer/
|
|
echo 差异文件$i
|
|
done
|
|
|
|
cd /tmp/IOTContainer/
|
|
|
|
ls -la
|
|
|
|
zip_name=$DRONE_REPO_NAME.$(cat /drone/src/.tags).zip
|
|
zip -q -r $zip_name ./
|
|
|
|
cd /drone/src/
|