Subversion Repositories DevTools

Rev

Rev 1042 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1042 Rev 1050
Line -... Line 1...
-
 
1
 
1
#
2
#
2
#   Receive a file and save is locally
3
#   Receive a file and save is locally
3
#   Script run by ssh to receive a compressed file and to save it
4
#   Script run by ssh to receive a compressed file and to save it
-
 
5
#   Works in bash and dash
4
#
6
#
5
#   Assumes that gzip output as stdin
7
#   Assumes that gzip output as stdin
6
#
8
#
7
#set -x
9
#set -x
8
set -e
10
set -e
9
 
11
 
10
function error {
12
error() {
11
    echo ERROR: $*
13
    echo ERROR: $*
12
    exit 1;
14
    exit 1;
13
}
15
}
14
 
16
 
15
# User options
17
# User options