You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by sm...@apache.org on 2021/10/13 04:19:59 UTC
[incubator-pegasus] branch master updated: fix(script): empty
pack_template leads to 'sed: no input files' (#821)
This is an automated email from the ASF dual-hosted git repository.
smityz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new ac03bfc fix(script): empty pack_template leads to 'sed: no input files' (#821)
ac03bfc is described below
commit ac03bfc8b317e2b8b125d7c2adb23fc03d0b44bc
Author: Dan Wang <em...@126.com>
AuthorDate: Wed Oct 13 12:19:52 2021 +0800
fix(script): empty pack_template leads to 'sed: no input files' (#821)
---
scripts/pack_client.sh | 2 +-
scripts/pack_server.sh | 2 +-
scripts/pack_tools.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/pack_client.sh b/scripts/pack_client.sh
index 454d4a9..9dce9cc 100755
--- a/scripts/pack_client.sh
+++ b/scripts/pack_client.sh
@@ -116,7 +116,7 @@ echo "Pegasus Client $version ($commit_id) $platform $build_type" >${pack}/VERSI
tar cfz ${pack}.tar.gz ${pack}
-if [ -f $pack_template ]; then
+if [ -f "$pack_template" ]; then
echo "Modifying $pack_template ..."
sed -i "/^version:/c version: \"$pack_version\"" $pack_template
sed -i "/^build:/c build: \"\.\/run.sh pack\"" $pack_template
diff --git a/scripts/pack_server.sh b/scripts/pack_server.sh
index 40bc7a9..d0b2f7b 100755
--- a/scripts/pack_server.sh
+++ b/scripts/pack_server.sh
@@ -174,7 +174,7 @@ echo "Pegasus Server $version ($commit_id) $platform $build_type" >${pack}/VERSI
tar cfz ${pack}.tar.gz ${pack}
-if [ -f $pack_template ]; then
+if [ -f "$pack_template" ]; then
echo "Modifying $pack_template ..."
sed -i "/^version:/c version: \"$pack_version\"" $pack_template
sed -i "/^build:/c build: \"\.\/run.sh pack\"" $pack_template
diff --git a/scripts/pack_tools.sh b/scripts/pack_tools.sh
index 9d8d9aa..0cfc2dd 100755
--- a/scripts/pack_tools.sh
+++ b/scripts/pack_tools.sh
@@ -151,7 +151,7 @@ echo "Pegasus Tools $version ($commit_id) $platform $build_type" >${pack}/VERSIO
tar cfz ${pack}.tar.gz ${pack}
-if [ -f $pack_template ]; then
+if [ -f "$pack_template" ]; then
echo "Modifying $pack_template ..."
sed -i "/^version:/c version: \"$pack_version\"" $pack_template
sed -i "/^build:/c build: \"\.\/run.sh pack_tools\"" $pack_template
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org