Skip to contentSkip to conversation

Fix some typos for stderr redirection

PATCH New Yi Zhao 1 participant 3 messages Jul 17, 2013

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

cover Fix some typos for stderr redirection

The following changes since commit 3dee534f1e25109e0bdb681de0746c336f4b8840:

lib/oeqa: fix dependecy check (2013-07-16 10:04:17 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib yizhao/postinsts
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=yizhao/postinsts

Yi Zhao (2):
run-postinsts: Fix typo
rpm-postinsts.bb: Fix typo

 meta/recipes-devtools/rpm/rpm-postinsts.bb         |    2 +-
 .../run-postinsts/run-postinsts/run-postinsts      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/2 run-postinsts: Fix typo

Fix a typo for stderr redirection.

---
 .../run-postinsts/run-postinsts/run-postinsts      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +1 -1
index 2593066..d1bf582 100755
@@ -26,7 +26,7 @@ for i in `ls $pi_dir`; do
 	echo "Running postinst $i..."
 	if [ -x $i ]; then
 		if [ "$POSTINST_LOGGING" = "1" ]; then
-			sh -c $i >>$LOGFILE 2&>1
+			sh -c $i >>$LOGFILE 2>&1
 		else
 			sh -c $i
 		fi
Signature · 1 line
1.7.9.5
author
#2 lore raw

PATCH 2/2 rpm-postinsts.bb: Fix typo

In reply to Yi Zhao

Fix a typo for stderr redirection.

---
 meta/recipes-devtools/rpm/rpm-postinsts.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm-postinsts.bb +1 -1
index c8fc1c3..ba58cd4 100644
@@ -36,7 +36,7 @@ if [ "x$D" != "x" ] && [ -f $D/var/lib/rpm/Packages ]; then
 	echo "Running postinst $i..."
 	if [ -x $i ]; then
 		if [ "$POSTINST_LOGGING" = "1" ]; then
-			$i >>$LOGFILE 2&>1
+			$i >>$LOGFILE 2>&1
 		else
 			$i
 		fi
Signature · 1 line
1.7.9.5