From: Thanh Ha Date: Wed, 6 Jun 2018 20:27:01 +0000 (-0400) Subject: Clear log credential files with force (-f) X-Git-Tag: v0.21.0~23 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=386d0e86c4c3f1b91b8342a1da44caa0a2e04acd;p=releng%2Fglobal-jjb.git Clear log credential files with force (-f) Prevents Jenkins from printing file not found if the files are already cleaned up for whatever reason. Eg. If the project is not shipping logs to a log server. Change-Id: I7b2f614ded8defcbfe014b44febe210381206675 Signed-off-by: Thanh Ha --- diff --git a/shell/logs-clear-credentials.sh b/shell/logs-clear-credentials.sh index 74dbae36..a4a8cdda 100644 --- a/shell/logs-clear-credentials.sh +++ b/shell/logs-clear-credentials.sh @@ -10,5 +10,5 @@ ############################################################################## # Clear log credential files -rm "$SETTINGS_FILE" -rm ~/.netrc +rm -f "$SETTINGS_FILE" +rm -f ~/.netrc