shellcheck: fix warnings (#6274)

* Remove outdated files

* Fix warnings
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-08-23 15:17:54 +08:00
committed by GitHub
parent a840ae9035
commit 92c5f94fe7
14 changed files with 25 additions and 104 deletions

View File

@@ -21,7 +21,7 @@ main() {
exit 1
fi
find "${BACKUP_PATH}/" -type f -name "gogs-backup-*.zip" -${FIND_EXPRESSION} -print -exec rm "{}" +
find "${BACKUP_PATH}/" -type f -name "gogs-backup-*.zip" "-${FIND_EXPRESSION}" -print -exec rm "{}" +
}
main "$@"