Make functional stub function copy_to_public_dir

This commit is contained in:
Roan Horning 2023-03-03 20:45:16 -05:00
parent d45ca0de96
commit 2ce1280cc0
Signed by untrusted user: rho_n
GPG Key ID: 234AEF20B72D5769

View File

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