X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=deno%2Finstall.sh;fp=deno%2Finstall.sh;h=ff70f454d7973d942cb5fe01e9eebe24b2712e0c;hp=78fc3d57ef7b706854ce9819c078ce001caa8bfe;hb=ca7a838c6fde6052124947ff442aa9e6056f5e28;hpb=704265583cff80363fec60c4088f5b91f6d98bd0 diff --git a/deno/install.sh b/deno/install.sh index 78fc3d5..ff70f45 100644 --- a/deno/install.sh +++ b/deno/install.sh @@ -12,7 +12,7 @@ pkg_cmd_name="deno" # IMPORTANT: this let's other functions know to expect this to be a single file WEBI_SINGLE=true -pkg_get_current_version() { +function pkg_get_current_version() { # 'deno --version' has output in this format: # deno 1.1.0 # v8 8.4.300 @@ -22,7 +22,7 @@ pkg_get_current_version() { echo "$(deno --version 2> /dev/null | head -n 1 | cut -d' ' -f2)" } -pkg_install() { +function pkg_install() { # $HOME/.local/xbin mkdir -p "$pkg_src_bin" @@ -33,7 +33,7 @@ pkg_install() { chmod a+x "$pkg_src_cmd" } -pkg_link() { +function pkg_link() { # rm -f "$HOME/.local/bin/deno" rm -f "$pkg_dst_cmd"