make message about removing old installations more clear

This commit is contained in:
ronivay
2017-09-01 21:00:22 +03:00
parent d389316e2f
commit 95830b2d5c

View File

@@ -270,9 +270,10 @@ function UpdateXO {
# remove old builds. leave 3 latest
echo
echo "Removing old installations (leaving 3 latest)"
echo -n "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
echo "done"
}
function CheckOS {