Skip to content

Instantly share code, notes, and snippets.

while [ ! "$(sed -n "/done/p" "$LOGFILE")" ];
do
if [ "$LINE" != "$(tail -n 1 "$LOGFILE")" ]; then
LINE=$(tail -n 1 "$LOGFILE")
echo -en $LINE"\n"
fi
done
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 14 updates, 0 removals
- Updating mobiledetect/mobiledetectlib (2.8.24 => 2.8.25): Downloading (100%)
- Updating cakephp/chronos (1.1.0 => 1.1.1): Downloading (100%)
- Updating zendframework/zend-diactoros (1.3.10 => 1.4.0): Downloading (100%)
- Updating symfony/yaml (v3.2.6 => v3.2.7): Loading from cache
- Updating symfony/debug (v3.2.6 => v3.2.7): Downloading (100%)
- Updating symfony/console (v3.2.6 => v3.2.7): Downloading (100%)
- Updating symfony/var-dumper (v3.2.6 => v3.2.7): Downloading (100%)
handleNumberInputFocus: function (e){
e.target.addEventListener('wheel', this.handlePreventScrollNumberInput)
},
handleNumberInputBlur: function (e) {
e.target.removeEventListener('wheel', this.handlePreventScrollNumberInput);
},
handlePreventScrollNumberInput: function (e) {
e.preventDefault();