#!/bin/bash
-{
+function __init_foobar() {
set -e
set -u
# foobar 0.99.9 (rev abcdef0123)
# This trims it down to just the version number:
# 0.99.9
- echo $(foo --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
+ echo $(foo --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
}
}
+
+__init_foobar