Clear log credential files with force (-f) 74/11074/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 6 Jun 2018 20:27:01 +0000 (16:27 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 6 Jun 2018 20:27:03 +0000 (16:27 -0400)
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 <thanh.ha@linuxfoundation.org>
shell/logs-clear-credentials.sh

index 74dbae3..a4a8cdd 100644 (file)
@@ -10,5 +10,5 @@
 ##############################################################################
 
 # Clear log credential files
-rm "$SETTINGS_FILE"
-rm ~/.netrc
+rm -f "$SETTINGS_FILE"
+rm -f ~/.netrc