From e8b22f9bbbd49a48ed549ba74c6c170e3e428c45 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Tue, 12 Mar 2024 19:11:25 +0100 Subject: [PATCH] Fix check for WORKSPACE/binarydeb to look use directory instead of file Signed-off-by: Jose Luis Rivero --- ros_buildfarm/templates/release/deb/binarypkg_job.xml.em | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ros_buildfarm/templates/release/deb/binarypkg_job.xml.em b/ros_buildfarm/templates/release/deb/binarypkg_job.xml.em index 70e364ea3..5b55a558d 100644 --- a/ros_buildfarm/templates/release/deb/binarypkg_job.xml.em +++ b/ros_buildfarm/templates/release/deb/binarypkg_job.xml.em @@ -122,8 +122,8 @@ but disabled since the package is blacklisted (or not whitelisted) in the config 'echo "# END SECTION"', '', 'echo "# BEGIN SECTION: Run Dockerfile - binarydeb task"', - '# ensure to have write permission before trying to delete the folder', - 'if [ -f $WORKSPACE/binarydeb ] ; then chmod -R u+w $WORKSPACE/binarydeb ; fi', + '# ensure to have write permission before trying to delete the directory', + 'if [ -d $WORKSPACE/binarydeb ] ; then chmod -R u+w $WORKSPACE/binarydeb ; fi', 'rm -fr $WORKSPACE/binarydeb', 'rm -fr $WORKSPACE/docker_build_binarydeb', 'mkdir -p $WORKSPACE/binarydeb',