Skip to content
Snippets Groups Projects
Verified Commit 33efc4de authored by David Beniamine's avatar David Beniamine
Browse files

Fix retrie_on_fail

parent aa863dab
Branches
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ exit_on_fail(){
}
retrie_on_fail(){
if [ $1 -ne 0 ]; then
cat <<EOF | lftp $host
user $user $ftppass
......@@ -22,6 +23,7 @@ mkdir $remotedir
EOF
backup "cleaned"
leave $?
fi
}
backup(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment