From 4b89853e75973108d427b0eba5ff3a656df7265f Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 23 Feb 2019 20:22:45 -0800 Subject: [PATCH] Fix how binary is verified --- scripts/build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 7a505e2..13305df 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -111,8 +111,7 @@ if [[ ! -f "$NGINX_SRC_DIR/objs/nginx" ]]; then exit 1 fi -cp "$NGINX_SRC_DIR/objs/nginx" "$NGINX_BUILT_BINARY_PATH" +cd "$NGINX_SRC_DIR/objs" +./nginx -V -# Verify build works -cd "$NGINX_ARTIFACT_PATH" || exit 1 -./"$NGINX_BUILT_BINARY_PATH" -V +cp "$NGINX_SRC_DIR/objs/nginx" "$NGINX_BUILT_BINARY_PATH" -- GitLab