X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=bat%2Finstall.sh;h=142efda05218672e5771efa026b8006523013051;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=6ae91541de66cc83d69691534d65893ffe6b5831;hpb=4b487e4d4d2b75ace4f0e265a1719508cbb8a4c1;p=webi-installers%2F.git diff --git a/bat/install.sh b/bat/install.sh index 6ae9154..142efda 100644 --- a/bat/install.sh +++ b/bat/install.sh @@ -1,8 +1,8 @@ #!/bin/bash +set -e +set -u -{ - set -e - set -u +function __init_bat() { ############### # Install bat # @@ -11,11 +11,11 @@ WEBI_SINGLE=true pkg_get_current_version() { - # 'bat --version' has output in this format: - # bat 0.15.4 - # This trims it down to just the version number: - # 0.15.4 - echo $(bat --version 2>/dev/null | head -n 1 | cut -d' ' -f 2) + # 'bat --version' has output in this format: + # bat 0.15.4 + # This trims it down to just the version number: + # 0.15.4 + echo $(bat --version 2> /dev/null | head -n 1 | cut -d' ' -f 2) } pkg_install() { @@ -29,3 +29,5 @@ chmod a+x "$pkg_src_cmd" } } + +__init_bat