lix/lib/versionformat.sh

8 lines
116 B
Bash

#!/bin/sh -e
versionformat() {
(vercmp formats | grep -q "^$1\$") \
&& echo "$1" \
|| echo "default"
}