We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c99de commit 3d12f03Copy full SHA for 3d12f03
nginx-build-msys2.sh
@@ -40,7 +40,7 @@ echo $OPENSSL
40
41
# clone and patch nginx
42
if [[ -d nginx ]]; then
43
- cd nginx
+ cd nginx || exit 1
44
git checkout master
45
git branch patch -D
46
if [[ "${NGINX_TAG}" == "" ]]; then
@@ -52,11 +52,15 @@ if [[ -d nginx ]]; then
52
else
53
54
git clone https://github.com/nginx/nginx.git --depth=1
55
56
57
git clone https://github.com/nginx/nginx.git --depth=1 --branch "${NGINX_TAG}"
58
59
+ # You are in 'detached HEAD' state.
60
+ git checkout -b master
61
fi
62
63
+
64
git checkout -b patch
65
git am -3 ../nginx-*.patch
66
0 commit comments