Skip to content

Commit

Permalink
SL-18837: Careful of line breaks in $(...) constructs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-goodspeed committed May 18, 2023
1 parent d8f91fc commit eab913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ OPENSSL_INCLUDE="${stage}"/packages/include/openssl

LIBCURL_HEADER_DIR="${CURL_SOURCE_DIR}"/include
LIBCURL_VERSION_HEADER_DIR="$LIBCURL_HEADER_DIR/curl"
version=$(perl -ne 's/#define LIBCURL_VERSION "([^"]+)"/$1/ && print'
version=$(perl -ne 's/#define LIBCURL_VERSION "([^"]+)"/$1/ && print' \
"$(cygpath -m "${LIBCURL_VERSION_HEADER_DIR}/curlver.h")")
build=${AUTOBUILD_BUILD_ID:=0}
echo "${version}.${build}" > "${stage}/VERSION.txt"
Expand Down

0 comments on commit eab913b

Please sign in to comment.