#!/bin/bash

# set work path
path=$(dirname "$0")
path="${path/\./$(pwd)}"
pwd="${path}"

cd "${pwd}"


# Write result to result.txt
# $1: error code of the task
# $2: error message of the task
# $3: detail information of the task
create_result(){
	echo "ErrCode:$1" >> "${pwd}/result.txt"
	echo "ErrMsg:$2" >>"${pwd}/result.txt"
	echo "DetailInfo:$3" >>"${pwd}/result.txt"
}

# task code start

create_result 0 "success" "task end."
# task code end


