[oe-commits] Chris Larson : bin/install: use '.' not source, and use -eq not ==

git version control git at git.openembedded.org
Thu Feb 3 22:36:27 UTC 2011


Module: openembedded.git
Branch: ulf/linux-2.6.30-2011-01-16
Commit: 8f47121856b469094e0d60ff4f65e5d814a91f5f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8f47121856b469094e0d60ff4f65e5d814a91f5f

Author: Chris Larson <chris_larson at mentor.com>
Date:   Thu Jan 27 10:14:56 2011 -0700

bin/install: use '.' not source, and use -eq not ==

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 bin/install |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/install b/bin/install
index a587fa0..ab316f6 100755
--- a/bin/install
+++ b/bin/install
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source $(dirname $0)/wrapper.sh
+. $(dirname $0)/wrapper.sh
 
 saved=""
 while getopts dbCcMpSsvB:f:g:m:o:D opt; do
@@ -28,7 +28,7 @@ for arg; do
     save "$arg"
 done
 
-if [ $# == 2 -a -n "$createleading" ]; then
+if [ $# -eq 2 -a -n "$createleading" ]; then
     install -d $(dirname $2)
 fi
 





More information about the Openembedded-commits mailing list