diff options
author | rsc <devnull@localhost> | 2005-03-24 05:17:01 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-24 05:17:01 +0000 |
commit | 65fb6fb74cb14afcc8b7040fcc6f253dec622fd0 (patch) | |
tree | 0f494c00efdcf64b1a1ac07008321661ccd1bf31 /src/cmd/netfiles/netfileput | |
parent | ed8dfe37dbd4470bbb9ce487e78b1d6ae365fb85 (diff) | |
download | plan9port-65fb6fb74cb14afcc8b7040fcc6f253dec622fd0.tar.gz plan9port-65fb6fb74cb14afcc8b7040fcc6f253dec622fd0.tar.bz2 plan9port-65fb6fb74cb14afcc8b7040fcc6f253dec622fd0.zip |
Be a bit more resilient to errors.
Diffstat (limited to 'src/cmd/netfiles/netfileput')
-rwxr-xr-x | src/cmd/netfiles/netfileput | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cmd/netfiles/netfileput b/src/cmd/netfiles/netfileput index 84cdf610..c8a0ee3f 100755 --- a/src/cmd/netfiles/netfileput +++ b/src/cmd/netfiles/netfileput @@ -11,13 +11,7 @@ f=putfile fn putfile{ cat >$t - if(! 9 echo -put $t $2 | mysftp $1 >$t.e >[2=1]) - exit 1 - egrep -v '^Uploading' $t.e >$t.e2 - if(test -s $t.e2){ - cat $t.e >[1=2] - exit 1 - } + echo put $t $2 | runsftp -e $1 } fn putfile9p{ if(! 9p write $1/$2) |