Fill out function clean_working_dir
This commit is contained in:
parent
b544687f0f
commit
ee6a4e601d
@ -60,10 +60,18 @@ function make_working_dir {
|
|||||||
#--- FUNCTION ----------------------------------------------------------------
|
#--- FUNCTION ----------------------------------------------------------------
|
||||||
# NAME: clean_working_dir
|
# NAME: clean_working_dir
|
||||||
# DESCRIPTION: Remove local temporary working directory
|
# DESCRIPTION: Remove local temporary working directory
|
||||||
# PARAMETERS:
|
# PARAMETERS: WORK_DIR -- Temporay directory to be delted
|
||||||
# RETURNS:
|
# RETURNS:
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
function clean_working_dir { echo; }
|
function clean_working_dir {
|
||||||
|
if [[ -d $1 ]] && expr $1 : '.*/tmp.*' ; then
|
||||||
|
rm -rf $1
|
||||||
|
echo "Deleted temp working directory $1"
|
||||||
|
else
|
||||||
|
echo "Not a temporary directory: $1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#--- FUNCTION ----------------------------------------------------------------
|
#--- FUNCTION ----------------------------------------------------------------
|
||||||
# NAME: download_hpr_sql
|
# NAME: download_hpr_sql
|
||||||
|
Reference in New Issue
Block a user