Commit 32895de4 authored by Fjen Undso's avatar Fjen Undso
Browse files

Merge branch 'fix-ftp-delete' into 'master'

Fix deletion on server

See merge request !2
parents 80d544c4 c5c35c69
......@@ -260,7 +260,7 @@ upload() {
# FTP: delete old backups
info "Delete old backups on FTP..."
ftpfiles=$(exec_ftp "cd \"$FTP_DIR\"; nlist; exit")
ftpfiles=$(exec_ftp "cd \"$FTP_DIR\"; nlist; exit" | sort)
## filter files starting with a dot
ftpfiles=( $(echo $ftpfiles | sed 's,\.[A-Za-z0-9_\/\.]* , ,g') )
## find old backups
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment