From 2ce1280cc0503c4df7e8581d933b35a9e975faea Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 3 Mar 2023 20:45:16 -0500 Subject: [PATCH] Make functional stub function copy_to_public_dir --- utils/lib_utils.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utils/lib_utils.sh b/utils/lib_utils.sh index 84990e0..906da54 100644 --- a/utils/lib_utils.sh +++ b/utils/lib_utils.sh @@ -164,5 +164,14 @@ function make_hpr_sqlite_db { # PARAMETERS: # RETURNS: #------------------------------------------------------------------------------- -function copy_to_public_dir { echo; } +function copy_to_public_dir { + if [ $# -gt 1 ] && [ ! -z "$1" ] && [ ! -z "$2" ]; + then + cp $1/hpr.sql $2/hpr.sql + cp $1/hpr.db $2/hpr.db + return 0 + else + echo "Bad arguments. Can't copy files to public directory." + fi +}