X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=watchexec%2Finstall.sh;h=f457f0f16aa3d8c488aa8f40171ca51950d43f56;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=b4b92d34caedf3108a5d3b9c60bcc9896133fd56;hpb=8973d951e41765636b3e85b8453d8573b7149015;p=webi-installers%2F.git diff --git a/watchexec/install.sh b/watchexec/install.sh index b4b92d3..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 (rev abcdef0123) + # 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