make message about removing old installations more clear
This commit is contained in:
@@ -270,9 +270,10 @@ function UpdateXO {
|
|||||||
|
|
||||||
# remove old builds. leave 3 latest
|
# remove old builds. leave 3 latest
|
||||||
echo
|
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-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
|
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 {
|
function CheckOS {
|
||||||
|
Reference in New Issue
Block a user