-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #9794: Malformed .gz inventory breaks upload process #1093
Fix #9794: Malformed .gz inventory breaks upload process #1093
Conversation
if [ $UNZIP_COMMAND_RET -ne 0 ] | ||
then | ||
echo "ERROR: failed to decompress inventory in ${FILENAME} az gzip, putting it in the failed directory" | ||
mv "${FILENAME}" "${FAILEDDIR}/`basename ${FILENAME}`-$(date --rfc-3339=date)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you mix `` and $() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I coped that part from ~line 100 to that if-statement, to have the coding style as it was originally, and not to mix with my style. The question is, do you guys mix $() and `` :-)
then | ||
echo "ERROR: failed to decompress inventory in ${FILENAME} az gzip, putting it in the failed directory" | ||
mv "${FILENAME}" "${FAILEDDIR}/`basename ${FILENAME}`-$(date --rfc-3339=date)" | ||
mv "${FILENAME_SIGN}" "${FAILEDDIR}/`basename ${FILENAME_SIGN}`-$(date --rfc-3339=date)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is not always a signature file, you should avoid errors here with a [ -f ] &&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above. will rework that part of code without using your logic, but as I see well suited.
555bf5e
to
c8f46b4
Compare
Sorry for the original mixed style and thank you for the PR. |
OK, merging this PR |
No description provided.