File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # this file is mostly meant to be used by the author himself .
3+ # this file is only meant to be used by the module developers .
44
55root=` pwd`
66version=$1
@@ -11,7 +11,13 @@ ngx_redis_version=0.3.7
1111ngx_redis_path=$home /work/nginx/ngx_http_redis-$ngx_redis_version
1212
1313cd $ngx_redis_path || exit 1
14- patch --forward -p1 < $root /../ngx_openresty/patches/ngx_http_redis-$ngx_redis_version -variables_in_redis_pass.patch
14+ patch_file=$root /../openresty/patches/ngx_http_redis-$ngx_redis_version -variables_in_redis_pass.patch
15+ if [ ! -f $patch_file ]; then
16+ echo " $patch_file : No such file" > /dev/stderr
17+ exit 1
18+ fi
19+ # we ignore any errors here since the target directory might have already been patched.
20+ patch --forward -p1 < $patch_file
1521cd $root || exit 1
1622
1723# --without-http_memcached_module \
You can’t perform that action at this time.
0 commit comments