fux update icons version

This commit is contained in:
codecalm 2022-04-05 00:14:12 +02:00
parent 5cc7b51bf7
commit 4ad236f449
1 changed files with 2 additions and 2 deletions

View File

@ -722,11 +722,11 @@ gulp.task('update-icons-version', function (cb) {
newVersion = argv['new-version'] || `${p.version}`
if (version) {
cp.exec(`git diff v${version} HEAD --name-status`, function (err, ret) {
cp.exec(`grep -RiL "version: " ./src/_icons/*.svg`, function (err, ret) {
let newIcons = []
ret.replace(/[A]\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
newIcons.push(fileName)
})