lunes, 16 de mayo de 2016

oe & ol

Funciones útiles en bash para deployar con Vagrant:

oe() { "$@" 2>&1 | logger -t "${PROJECT}" > /dev/null; }
ol() { echo "[${PROJECT_LOG}] $@"; }
...
ol 'Updating repository caches'
oe sudo apt-get -q -y update
...

http://stackoverflow.com/q/36787764/740552