summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/ws.sh
diff options
context:
space:
mode:
authorJohn Sonnenschein <johns@joyent.com>2012-05-17 18:26:57 +0000
committerJohn Sonnenschein <johns@joyent.com>2012-05-17 18:26:57 +0000
commit04b244dd661c24b510ac22936decfc0972d202d3 (patch)
tree3ebfef98afc303fddf3415d6fba64e8682f495e8 /usr/src/tools/scripts/ws.sh
parenteac250589e41f1b705e1b7427b02b3379aac9f9e (diff)
parenta69187741b83640a90dd8586195456dd50c016a8 (diff)
downloadillumos-joyent-20120517.tar.gz
Merge git.joyent.com:illumos-joyent20120517
Diffstat (limited to 'usr/src/tools/scripts/ws.sh')
-rw-r--r--usr/src/tools/scripts/ws.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/tools/scripts/ws.sh b/usr/src/tools/scripts/ws.sh
index 76440bb552..7f9f36a7cc 100644
--- a/usr/src/tools/scripts/ws.sh
+++ b/usr/src/tools/scripts/ws.sh
@@ -82,8 +82,8 @@ check_proto()
# check if it exists or not, we never did for Teamware,
# since it might appear later anyway.
#
- if [[ "${proto##ssh://}" == "$proto" -a \
- "${proto##http://}" == "$proto" -a \
+ if [[ "${proto##ssh://}" == "$proto" && \
+ "${proto##http://}" == "$proto" && \
"${proto##https://}" == "$proto" ]]; then
echo "${proto}/root_${MACH}"
fi
@@ -159,8 +159,8 @@ unset tmpwsname
#
# Checking for CODEMGR_WSPATH
#
-if [[ "(" "${CODEMGR_WSPATH}x" != "x" ")" -a "(" ! -d $wsname ")" -a \
- "(" `expr "$wsname" : "\/"` = "0" ")" ]]
+if [[ -n ${CODEMGR_WSPATH} && ( ! -d $wsname ) && \
+ ( `expr "$wsname" : "\/"` = "0" ) ]]
then
ofs=$IFS
IFS=": "
@@ -217,15 +217,15 @@ CODEMGR_WS=$wsname ; export CODEMGR_WS
SRC=$wsname/usr/src; export SRC
TSRC=$wsname/usr/ontest; export TSRC
-if [[ "$SCM_MODE" = "teamware" -a -d ${wsname}/Codemgr_wsdata ]]; then
+if [[ "$SCM_MODE" = "teamware" && -d ${wsname}/Codemgr_wsdata ]]; then
CM_DATA="Codemgr_wsdata"
wsosdir=$CODEMGR_WS/$CM_DATA/sunos
protofile=$wsosdir/protodefs
-elif [[ "$SCM_MODE" = "mercurial" -a -d ${wsname}/.hg ]]; then
+elif [[ "$SCM_MODE" = "mercurial" && -d ${wsname}/.hg ]]; then
CM_DATA=".hg"
wsosdir=$CODEMGR_WS/$CM_DATA
protofile=$wsosdir/org.opensolaris.protodefs
-elif [[ "$SCM_MODE" = "git" -a -d ${wsname}/.git ]]; then
+elif [[ "$SCM_MODE" = "git" && -d ${wsname}/.git ]]; then
CM_DATA=".git"
wsosdir=$CODEMGR_WS/$CM_DATA
protofile=$wsosdir/org.opensolaris.protodefs