X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=watchexec%2Finstall.sh;h=f457f0f16aa3d8c488aa8f40171ca51950d43f56;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=c51a649b13296d44bc236b257629019f2481fe43;hpb=6efe41512f68a9c370180b7d060928ed0986e5f6;p=webi-installers%2F.git diff --git a/watchexec/install.sh b/watchexec/install.sh index c51a649..f457f0f 100644 --- a/watchexec/install.sh +++ b/watchexec/install.sh @@ -1,8 +1,8 @@ #!/bin/bash +set -e +set -u -{ - set -e - set -u +function __init_watchexec() { ##################### # Install watchexec # @@ -30,10 +30,12 @@ # pkg_get_current_version is recommended, but (soon) not required pkg_get_current_version() { # 'watchexec --version' has output in this format: - # watchexec 0.99.9 + # watchexec 0.99.9 # This trims it down to just the version number: # 0.99.9 - echo $(watchexec --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2) + echo $(watchexec --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2) } } + +__init_watchexec