[packages/rpm-build-tools/merge-pld-builder-client: 93/2675] - allow -c - to read command from stdin (no more need to whack around with shell escaping)
glen
glen at pld-linux.org
Mon Dec 19 21:56:44 CET 2016
commit 0e5e393cb7557f1ae5f6efa1f56ca2f329b6a5b8
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Thu Feb 4 11:42:49 2010 +0000
- allow -c - to read command from stdin (no more need to whack around with shell escaping)
Changed files:
client/make-request.sh -> 1.64
make-request.sh | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/make-request.sh b/make-request.sh
index 13dd189..9a774a0 100644
--- a/make-request.sh
+++ b/make-request.sh
@@ -222,6 +222,12 @@ while [ $# -gt 0 ] ; do
--command | -c )
command="$2"
+ if [ $command = - ]; then
+ echo >&2 "Reading command from STDIN"
+ echo >&2 "---"
+ command=$(cat)
+ echo >&2 "---"
+ fi
f_upgrade=no
shift
;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list