Diff for scripts/shell/sms/sity.sk/sms.sh between version 1.22 and 1.23
| version 1.22, 2002/06/25 09:11:08 |
version 1.23, 2002/06/25 13:45:52 |
|
|
| # equal sign '=' is not needed |
# equal sign '=' is not needed |
| # username, usernam userna, .. user supported |
# username, usernam userna, .. user supported |
| # password, ... supported |
# password, ... supported |
| # Hi rajo, fix your things before commiting in :-/ : |
|
| if [ -f "$CONFIG_FILE" ]; then |
|
| NAME=`awk 'BEGIN { FS="[ =]+" } /^#/ { next; } \ |
|
| /^user/ { if (NF > 2) { print $3; exit; } \ |
|
| else { print $2; } exit; }' "$CONFIG_FILE"`; |
|
| PASS=`awk 'BEGIN { FS="[ =]+" } /^#/ { next; } \ |
|
| /^pass/ { if (NF > 2) { print $3; exit; } \ |
|
| else { print $2; } exit; }' "$CONFIG_FILE"`; |
|
| fi |
|
| |
|
| echo -n "Looking for config file '$CONFIG_FILE'... "; |
echo -n "Looking for config file '$CONFIG_FILE'... "; |
| if [ -f "$CONFIG_FILE" ]; then |
if [ -f "$CONFIG_FILE" ]; then |
| echo "found."; |
echo "found."; |
Platon Group <platon@platon.org> http://platon.org/
|
|