From 933b1f4a9afef69c43c3621e0560126f35d9987b Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 22 2012 22:43:02 +0000 Subject: Update Functions/Commons/cli_terminateScriptExecution.sh --- diff --git a/Scripts/Bash/Functions/Commons/cli_terminateScriptExecution.sh b/Scripts/Bash/Functions/Commons/cli_terminateScriptExecution.sh index f342034..078ce6a 100755 --- a/Scripts/Bash/Functions/Commons/cli_terminateScriptExecution.sh +++ b/Scripts/Bash/Functions/Commons/cli_terminateScriptExecution.sh @@ -28,22 +28,8 @@ function cli_terminateScriptExecution { - # Build list of temporal files related to this script execution. - # Remember that inside `/tmp' directory there are files and - # directories you might have no access to (due permission - # restrictions), so command cli_getFilesList to look for files in - # the first level of files that you are owner of. Otherwise, - # undesired `permission denied' messages might be output. - local FILES=$(cli_getFilesList ${CLI_TEMPDIR} \ - --pattern="${CLI_NAME}-${CLI_PPID}-.+" \ - --maxdepth="1" --uid="$(id -u)") - - # Remove list of temporal files related to this script execution, - # if any of course. Remember that some of the temporal files can - # be directories, too. - if [[ $FILES != '' ]];then - rm -rf $FILES - fi + # Remove temporal directory. + rm -r ${CLI_TEMPDIR} # Terminate script correctly. exit 0