Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for scripts/shell/ssh-utils/put between version 1.8 and 1.9

version 1.8, 2006/08/30 15:20:25 version 1.9, 2006/09/08 06:49:30
Line 19 
Line 19 
 #  #
   
 #  #
 # $Platon: scripts/shell/ssh-utils/put,v 1.7 2003/11/28 17:33:37 nepto Exp $  # $Platon: scripts/shell/ssh-utils/put,v 1.8 2006-08-30 15:20:25 rajo Exp $
 #  #
   
 user="${user:=$USER}";  default_user="${user:=$USER}";
   user='';
 machine='';  machine='';
   
 ssh_put()  ssh_put()
Line 42  if [ "$#" -lt 1 ]; then
Line 43  if [ "$#" -lt 1 ]; then
         exit 1;          exit 1;
 fi  fi
   
 #echo -en "username: ";  echo "Default username is '$default_user', press ENTER to use this.";
 #read user;  echo -en "Enter username: ";
 echo -en "hostname: ";  read user;
   
   if [ -z "$user" ]; then
           echo "No username specified, using default: $default_user";
           user="$default_user";
   fi
   
   echo -en "Enter hostname: ";
 read machine;  read machine;
   
 if [ -z "$user" ] || [ -z "$machine" ]; then  if [ -z "$machine" ]; then
         echo "No username or hostname specified.";          echo "No hostname specified.";
         exit 1;          exit 1;
 fi  fi
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top