Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 25, 2026

Diff for scripts/shell/obex/obexftp-get-folder.sh between version 1.1 and 1.2

version 1.1, 2005/02/06 10:11:46 version 1.2, 2005/02/07 14:15:30
Line 12 
Line 12 
 # 2005-02-03 - created  # 2005-02-03 - created
 #  #
   
 # $Platon$  # $Platon: scripts/shell/obex/obexftp-get-folder.sh,v 1.1 2005/02/06 10:11:46 nepto Exp $
   
 if [ "X$1" = "X" ]; then  if [ "X$1" = "X" ]; then
         echo "Usage: $0 <folder>";          echo "Usage: $0 <folder>";
Line 28  if [ "X$list" = "X" ]; then
Line 28  if [ "X$list" = "X" ]; then
 fi  fi
   
 if [ -e "$DIR" ]; then  if [ -e "$DIR" ]; then
         echo "ERROR: folder exists";          echo "WARNING: folder exists";
         exit 4;  
 fi  fi
   
 echo -n "Creating '$DIR'... ";  echo -n "Creating '$DIR'... ";
Line 47  for i in $list; do
Line 46  for i in $list; do
         ts="`   echo \"$i\"  | sed 's/^.*://g' `";          ts="`   echo \"$i\"  | sed 's/^.*://g' `";
         tts="`  echo \"$ts\" | sed 's/T//g; s/\(..\)$/\.\1/g;' `";          tts="`  echo \"$ts\" | sed 's/T//g; s/\(..\)$/\.\1/g;' `";
         echo "----- $file -----";          echo "----- $file -----";
           if [ -e "$file" ]; then
                   echo "File exists, skipping...";
                   continue;
           fi
         obexftp --get "$1/$file" && touch -c -t "$tts" "$file";          obexftp --get "$1/$file" && touch -c -t "$tts" "$file";
         if [ $? -ne 0 ]; then          if [ $? -ne 0 ]; then
                 echo "ERROR processing file";                  echo "ERROR processing file";
                   sleep 1;
                 continue;                  continue;
         fi;          fi;
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top