diff --git a/dev/create_release.sh b/dev/create_release.sh index b5529169f6c..da840aa663b 100755 --- a/dev/create_release.sh +++ b/dev/create_release.sh @@ -47,11 +47,11 @@ function make_source_package() { # create source package cd ${WORKING_DIR} cp -r "zeppelin" "zeppelin-${RELEASE_VERSION}" - ${TAR} cvzf "zeppelin-${RELEASE_VERSION}.tgz" "zeppelin-${RELEASE_VERSION}" + ${TAR} -cvzf "zeppelin-${RELEASE_VERSION}.tgz" "zeppelin-${RELEASE_VERSION}" echo "Signing the source package" cd "${WORKING_DIR}" - echo "${GPG_PASSPHRASE}" | gpg --passphrase-fd 0 --armor \ + gpg --batch --pinentry-mode loopback --passphrase "${GPG_PASSPHRASE}" --armor \ --output "zeppelin-${RELEASE_VERSION}.tgz.asc" \ --detach-sig "${WORKING_DIR}/zeppelin-${RELEASE_VERSION}.tgz" ${SHASUM} -a 512 "zeppelin-${RELEASE_VERSION}.tgz" > \ @@ -77,10 +77,10 @@ function make_binary_release() { cat ../../src/bin_license/LICENSE >> "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}/LICENSE" cat ../../src/bin_license/NOTICE >> "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}/NOTICE" cp ../../src/bin_license/licenses/* "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}/licenses/" - ${TAR} cvzf "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}.tgz" "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}" + ${TAR} -cvzf "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}.tgz" "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}" # sign bin package - echo "${GPG_PASSPHRASE}" | gpg --passphrase-fd 0 --armor \ + gpg --batch --pinentry-mode loopback --passphrase "${GPG_PASSPHRASE}" --armor \ --output "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}.tgz.asc" \ --detach-sig "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}.tgz" ${SHASUM} -a 512 "zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}.tgz" > \