forked from rho_n/hpr_generator
		
	Make functional stub function copy_to_public_dir
This commit is contained in:
		| @@ -164,5 +164,14 @@ function make_hpr_sqlite_db { | |||||||
| #    PARAMETERS:   | #    PARAMETERS:   | ||||||
| #       RETURNS:   | #       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 | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user