Rozdiely pre scripts/shell/obex/obexftp-get-folder.sh medzi verziami 1.2 a 1.3
| verzia 1.2, 2005/02/07 14:15:30 |
verzia 1.3, 2006/07/08 15:32:00 |
|
|
| # 2005-02-03 - created |
# 2005-02-03 - created |
| # |
# |
| |
|
| # $Platon: scripts/shell/obex/obexftp-get-folder.sh,v 1.1 2005/02/06 10:11:46 nepto Exp $ |
# $Platon: scripts/shell/obex/obexftp-get-folder.sh,v 1.2 2005/02/07 14:15:30 nepto Exp $ |
| |
|
| if [ "X$1" = "X" ]; then |
if [ "X$1" = "X" ]; then |
| echo "Usage: $0 <folder>"; |
echo "Usage: $0 <folder>"; |
| Riadok 20 if [ "X$1" = "X" ]; then |
|
| Riadok 20 if [ "X$1" = "X" ]; then |
|
| fi |
fi |
| |
|
| DIR="`pwd`/$1"; |
DIR="`pwd`/$1"; |
| list="`obexftp-list.sh "$1" | sed 's/ /_/g'`"; |
list="` obexftp-list.sh "$1" | sed 's/ /_/g' `"; |
| |
|
| if [ "X$list" = "X" ]; then |
if [ "X$list" = "X" ]; then |
| echo "ERROR: empty list (not connected?)"; |
echo "ERROR: empty list (not connected?)"; |
| Riadok 50 for i in $list; do |
|
| Riadok 50 for i in $list; do |
|
| echo "File exists, skipping..."; |
echo "File exists, skipping..."; |
| continue; |
continue; |
| fi |
fi |
| obexftp --get "$1/$file" && touch -c -t "$tts" "$file"; |
obexftp -b --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; |
sleep 1; |
Platon Group <platon@platon.sk> http://platon.sk/
|
|