From 386d0e86c4c3f1b91b8342a1da44caa0a2e04acd Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 6 Jun 2018 16:27:01 -0400 Subject: [PATCH] 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 --- shell/logs-clear-credentials.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.16.6