Changeset 4443 for palm/trunk/SCRIPTS/batch_scp
- Timestamp:
- Mar 5, 2020 3:31:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/batch_scp
r3549 r4443 27 27 # ----------------- 28 28 # $Id$ 29 # add cycle number to initial files too (000), 30 # remove compatibility for cycle numbers which are less than three digits wide 31 # 32 # 3549 2018-11-21 15:44:44Z raasch 29 33 # english translation of german comments / variable names 30 34 # … … 427 431 then 428 432 (( maxcycle = icycle )) 429 430 # FOR COMPATIBILITY REASONS WITH OLDER VERSIONS431 # CHECK IF CYCLE NUMBER CONTAINS LEADING ZEROS432 if [[ $(echo $cycle | cut -c1) = 0 ]]433 then434 leading_zero=true435 else436 leading_zero=false437 fi438 433 fi 439 434 … … 464 459 (( maxcycle = usecycle )) 465 460 else 466 printf " >>> Un fied cycle number cannot be used\n"461 printf " >>> Unified cycle number cannot be used\n" 467 462 fi 468 463 fi 469 cyclestring=`printf ".%03d" $maxcycle` 470 else 471 if (( maxcycle == 0 )) 472 then 473 cyclestring="" 474 else 475 cyclestring=`printf ".%03d" $maxcycle` 476 fi 477 fi 464 fi 465 cyclestring=`printf ".%03d" $maxcycle` 478 466 else 479 467 if [[ $overwrite = false ]] … … 487 475 if [[ $absolut = false ]] 488 476 then 489 if (( maxcycle == 0 )) 490 then 491 cyclestring="" 492 else 493 494 # MAKE CYCLE NUMBER THREE DIGITS WIDE 495 if [[ $leading_zero = true ]] 496 then 497 cyclestring=`printf ".%03d" $maxcycle` 498 else 499 cyclestring=.$maxcycle 500 fi 501 (( maxcycle = 0 )) 502 fi 477 # MAKE CYCLE NUMBER THREE DIGITS WIDE 478 cyclestring=`printf ".%03d" $maxcycle` 503 479 else 504 480 cyclestring="" … … 511 487 then 512 488 (( maxcycle = usecycle )) 513 cyclestring=`printf ".%03d" $usecycle` 514 else 515 cyclestring="" 516 fi 489 fi 490 cyclestring=`printf ".%03d" $maxcycle` 517 491 518 492 # EXIT, IF FILE SHALL BE GET FROM THE TARGET HOST, BUT DOESN'T EXIST … … 526 500 527 501 528 # IF A FOLDER IS CREATED, THE FILENAME MUST NOT CONTAIN A CYCLE NUMBER IN529 # ANY CASE, SINCE IT CANNOT HAVE ONE530 if [[ $make_catalog = force ]]531 then532 cyclestring=""533 (( maxcycle = 0 ))534 fi535 536 537 502 # IF NAME-OPTION (-n) IS CHOSEN, ONLY DETERMINE THE LOCAL FILENAME ON THE 538 503 # TARGET HOST AND EXIT THE SCRIPT … … 630 595 if [[ $? != 0 ]] 631 596 then 632 # CHECK, OBIF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH597 # CHECK, IF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH 633 598 local_size=`ls -al $2` 634 599 local_size=`echo $local_size | cut -d" " -f5`
Note: See TracChangeset
for help on using the changeset viewer.