- SC2196: egrep is deprecated use grep -E instead.
- SC2086: Double quote to prevent word globbing.
Change-Id: I466ebf8f890fbc9e1047624345cc93d9f58ad5a0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
##############################################################################
echo "---> gpg-verify-git-signature.sh"
-if git log --show-signature -1 | egrep -q 'gpg: Signature made.*key ID'; then
+if git log --show-signature -1 | grep -E -q 'gpg: Signature made.*key ID'; then
echo "Git commit is GPG signed."
else
echo "WARNING: GPG signature missing for the commit."
##############################################################################
# Clear log credential files
-rm $SETTINGS_FILE
+rm "$SETTINGS_FILE"
rm ~/.netrc