X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=comrak%2Finstall.sh;h=163dfca1583963e7726fcedceaa33cfb80620f80;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=8e503524c2f747f3d76eeb624f0068d5209dc519;hpb=31e780afa641bb0b67b8f48e873c53273ea50462;p=webi-installers%2F.git diff --git a/comrak/install.sh b/comrak/install.sh index 8e50352..163dfca 100644 --- a/comrak/install.sh +++ b/comrak/install.sh @@ -1,8 +1,8 @@ #!/bin/bash +set -e +set -u -{ - set -e - set -u +function __init_comrak() { ################## # Install comrak # @@ -11,11 +11,11 @@ WEBI_SINGLE=true pkg_get_current_version() { - # 'comrak --version' has output in this format: - # comrak 0.8.1 - # This trims it down to just the version number: - # 0.8.1 - echo $(comrak --version 2>/dev/null | head -n 1 | cut -d' ' -f 2) + # 'comrak --version' has output in this format: + # comrak 0.8.1 + # This trims it down to just the version number: + # 0.8.1 + echo $(comrak --version 2> /dev/null | head -n 1 | cut -d' ' -f 2) } pkg_install() { @@ -34,3 +34,5 @@ "$pkg_src_cmd" --version > /dev/null } } + +__init_comrak