Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 17. október 2026

Rozdiely pre scripts/shell/obex/obexftp-get-folder.sh medzi verziami 1.1 a 1.2

verzia 1.1, 2005/02/06 10:11:46 verzia 1.2, 2005/02/07 14:15:30
Riadok 12 
Riadok 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>";
Riadok 28  if [ "X$list" = "X" ]; then
Riadok 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'... ";
Riadok 47  for i in $list; do
Riadok 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:
Odstranené z verzie1.1  
zmenené riadky
  Pridané vo verzii1.2

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok