mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
36 lines
795 B
Bash
36 lines
795 B
Bash
#!/bin/bash
|
|
set -e
|
|
set -u
|
|
|
|
function __init_curlie() {
|
|
|
|
##################
|
|
# Install curlie #
|
|
##################
|
|
|
|
WEBI_SINGLE=true
|
|
|
|
pkg_get_current_version() {
|
|
# 'curlie --version' has output in this format:
|
|
# TODO
|
|
# This trims it down to just the version number:
|
|
# TODO
|
|
#echo $(curlie --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
|
|
# See https://github.com/rs/curlie/issues/22
|
|
echo "0.0.0"
|
|
}
|
|
|
|
pkg_install() {
|
|
# $HOME/.local/xbin
|
|
mkdir -p "$pkg_src_bin"
|
|
|
|
# mv ./curlie* "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
|
|
mv ./curlie* "$pkg_src_cmd"
|
|
|
|
# chmod a+x "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
|
|
chmod a+x "$pkg_src_cmd"
|
|
}
|
|
}
|
|
|
|
__init_curlie
|