This commit is contained in:
ronivay
2017-08-30 19:01:57 +03:00
parent 606dcac780
commit 914128efc0

View File

@@ -269,7 +269,8 @@ function UpdateXO {
InstallXO
# remove old builds. leave 3 latest
echo "Removing old installations (leaving 5 latest)
echo
echo "Removing old installations (leaving 3 latest)"
find $INSTALLDIR/xo-builds/ -maxdepth 1 -type d -name "xo-web*" -printf "%T@ %p\n" | sort -n | cut -d' ' -f2- | head -n -3 | xargs -r rm -r
find $INSTALLDIR/xo-builds/ -maxdepth 1 -type d -name "xo-server*" -printf "%T@ %p\n" | sort -n | cut -d' ' -f2- | head -n -3 | xargs -r rm -r
}