This is an automated email from the ASF dual-hosted git repository.

yuchenhe pushed a commit to branch v2.3
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git

commit 8232fac31bf2a2be5beb222405a15967a88c8acb
Author: Dan Wang <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to