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

Rozdiely pre scripts/shell/sms/sity.sk/sms.sh medzi verziami 1.19 a 1.20

verzia 1.19, 2002/06/24 11:03:40 verzia 1.20, 2002/06/24 15:55:29
Riadok 60  fi
Riadok 60  fi
 # username, usernam userna, .. user supported  # username, usernam userna, .. user supported
 # password, ...                     supported  # password, ...                     supported
 # Hi rajo, fix your things before commiting in :-/ :  # Hi rajo, fix your things before commiting in :-/ :
 #if [ -f "$CONFIG_FILE" ]; then  if [ -f "$CONFIG_FILE" ]; then
 #       NAME=`awk '/^#/ { next; } \          NAME=`awk 'BEGIN { FS="[        =]+" } /^#/ { next; } \
 #               /^user/ { if (NF > 2) { print $3; } \                  /^user/ { if (NF > 2) { print $3; exit; } \
 #                       else { print $2; } exit; }' "$CONFIG_FILE"`;                          else { print $2; } exit; }' "$CONFIG_FILE"`;
 #       PASS=`awk '/^#/ { next; } \          PASS=`awk 'BEGIN { FS="[    =]+" } /^#/ { next; } \
 #               /^pass/ { if (NF > 2) { print $3; } \                  /^pass/ { if (NF > 2) { print $3; exit; } \
 #                       else { print $2; } exit; }' "$CONFIG_FILE"`;                          else { print $2; } exit; }' "$CONFIG_FILE"`;
 #fi  fi
   
 echo -n "Looking for alias file '$CONFIG_FILE'... ";  echo -n "Looking for alias file '$CONFIG_FILE'... ";
 if [ -f "$CONFIG_FILE" ]; then  if [ -f "$CONFIG_FILE" ]; then
         echo "found.";          echo "found.";
         echo -n "Looking for username... ";          echo -n "Looking for username... ";
         NAME=`grep -v '^#' "$CONFIG_FILE" \          NAME=`awk 'BEGIN { FS="[        =]+" } /^#/ { next; } \
         | grep -E '^user[a-z]*[   ]*=[    ]*' \                  /^user/ { if (NF > 2) { print $3; exit; } \
         | sed 's/^user[a-z]*[     ]*=[    ]*\(.*\)[       ]*$/\1/' \                          else { print $2; } exit; }' "$CONFIG_FILE"`;
         | head -n 1`;  
         if [ -z "$NAME" ]; then          if [ -z "$NAME" ]; then
                 echo "not found.";                  echo "not found.";
         else          else
Riadok 83  if [ -f "$CONFIG_FILE" ]; then
Riadok 83  if [ -f "$CONFIG_FILE" ]; then
         fi          fi
   
         echo -n "Looking for password... ";          echo -n "Looking for password... ";
         PASS=`grep -v '^#' "$CONFIG_FILE" \          PASS=`awk 'BEGIN { FS="[    =]+" } /^#/ { next; } \
         | grep -E '^pass[a-z]*[   ]*=[    ]*' \                  /^pass/ { if (NF > 2) { print $3; exit; } \
         | sed 's/^pass[a-z]*[     ]*=[    ]*\(.*\)[       ]*$/\1/' \                          else { print $2; } exit; }' "$CONFIG_FILE"`;
         | head -n 1`;  
         if [ -z "$PASS" ]; then          if [ -z "$PASS" ]; then
                 echo "not found.";                  echo "not found.";
         else          else

Legend:
Odstranené z verzie1.19  
zmenené riadky
  Pridané vo verzii1.20

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