From 633c4fbd829ca9ecea4b06a7e288da1444cc6d60 Mon Sep 17 00:00:00 2001 From: Scott Hain Date: Tue, 16 Jan 2018 14:24:20 -0800 Subject: Force deletion of tmpdir with sudo This makes sure we don't fail on the very slim chance that an OS generated file (lookin' at you, AIX) ends up in this directory and blocks deletion. Signed-off-by: Scott Hain --- ci/verify-chef.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh index 0c90d65dbe..528152b3b6 100755 --- a/ci/verify-chef.sh +++ b/ci/verify-chef.sh @@ -5,7 +5,7 @@ set -evx # Set up a custom tmpdir, and clean it up before and after the tests TMPDIR="${TMPDIR:-/tmp}/cheftest" export TMPDIR -rm -rf $TMPDIR +sudo rm -rf $TMPDIR mkdir -p $TMPDIR # $PROJECT_NAME is set by Jenkins, this allows us to use the same script to verify -- cgit v1.2.1