diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-04-27 18:31:24 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-04-27 18:31:24 +0800 |
commit | 188ef5fd79ebf94fbd01f37950f08616749d19c5 (patch) | |
tree | 9d5389615a38c147f9fdb808645f1e42897a36d5 /build_sample.sh | |
parent | 1f85f3116955e7da0be3249b8908aaa8d0c3f18c (diff) | |
download | cexcess-188ef5fd79ebf94fbd01f37950f08616749d19c5.tar.bz2 |
minor updates
Diffstat (limited to 'build_sample.sh')
-rwxr-xr-x | build_sample.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build_sample.sh b/build_sample.sh index bf205d0..c7020cf 100755 --- a/build_sample.sh +++ b/build_sample.sh @@ -107,8 +107,14 @@ while [ ! -z "$2" ]; do if [ "${OWNER}" = "lwt" ]; then cp -av ${repro_dir}/img . elif [ "${OWNER}" = "zzh" ]; then - cp -av ${repro_dir}/../evt2/img . - cp -av ${repro_dir}/../evt2/spc/profile/rspec.reg ./img/ + img_dir="${repro_dir}/../evt2/img" + if [ -f "${img_dir}/sbprofile.txt" ]; then + cp -av ${img_dir} . + cp -av ${repro_dir}/../evt2/spc/profile/rspec.reg ./img/ + else + echo "WARNING: '${img_dir}/sbprofile.txt' does not exists" + cp -av ${repro_dir}/img . + fi fi # apply clean up find . \( -iname '*_bak' -o -iname '_tmp*' \) -delete |