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 +}