Commit 1e08a95c authored by hrchilds's avatar hrchilds

Fix some mistakes with ksh to bash translations in visit_svn_helper.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@6987 18c085ea-50e0-402c-830e-de6fd14e8384
parent 515e58e2
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
# Gunther H. Weber, Fri Mar 13 11:04:00 PDT 2009 # Gunther H. Weber, Fri Mar 13 11:04:00 PDT 2009
# Replaced bashisms with POSIX so that script runs on Ubuntu with dash # Replaced bashisms with POSIX so that script runs on Ubuntu with dash
# #
# Hank Childs, Thu Apr 23 15:22:52 PDT 2009
# Fix some mistakes with "==" getting translated to "-ne".
#
# ***************************************************************************** # *****************************************************************************
...@@ -248,14 +251,14 @@ svn_cp_dir() ...@@ -248,14 +251,14 @@ svn_cp_dir()
# Confirm that $DEST does not already exist # Confirm that $DEST does not already exist
svn ls $DEST 2>/dev/null > /dev/null svn ls $DEST 2>/dev/null > /dev/null
if [ $? -ne 0 ] ; then if [ $? -eq 0 ] ; then
echo "Destination ($DEST) already exists. Aborting!" echo "Destination ($DEST) already exists. Aborting!"
exit 1 exit 1
fi fi
echo "Creating ${DEST}...." echo "Creating ${DEST}...."
svn copy $SRC $DEST -m "Making copy of $SRC as $DEST" svn copy $SRC $DEST -m "Making copy of $SRC as $DEST"
if [ $? -ne 0 ] ; then if [ $? -eq 0 ] ; then
echo "Successful." echo "Successful."
else else
echo "Not successful." echo "Not successful."
...@@ -279,14 +282,14 @@ svn_mv_dir() ...@@ -279,14 +282,14 @@ svn_mv_dir()
# Confirm that $DEST does not already exist # Confirm that $DEST does not already exist
svn ls $DEST 2>/dev/null > /dev/null svn ls $DEST 2>/dev/null > /dev/null
if [ $? -ne 0 ] ; then if [ $? -eq 0 ] ; then
echo "Destination ($DEST) already exists. Aborting!" echo "Destination ($DEST) already exists. Aborting!"
exit 1 exit 1
fi fi
echo "Creating ${DEST}...." echo "Creating ${DEST}...."
svn move $SRC $DEST -m "Making copy of $SRC as $DEST" svn move $SRC $DEST -m "Making copy of $SRC as $DEST"
if [ $? -ne 0 ] ; then if [ $? -eq 0 ] ; then
echo "Successful." echo "Successful."
else else
echo "Not successful." echo "Not successful."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment