aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm
diff options
context:
space:
mode:
Diffstat (limited to 'hyperterm')
-rw-r--r--hyperterm/core/update.sh21
-rw-r--r--hyperterm/hyperterm.sha5122
2 files changed, 12 insertions, 11 deletions
diff --git a/hyperterm/core/update.sh b/hyperterm/core/update.sh
index 486a09d..a3b4f9c 100644
--- a/hyperterm/core/update.sh
+++ b/hyperterm/core/update.sh
@@ -14,16 +14,15 @@ function _url_exists() {
}
function _urls() {
- URL_1="https://c.fridu.us/software/hyperterm.git"
- URL_2="https://git.sr.ht/~heckyel/hyperterm"
- case $(_url_exists "$URL_1") in
- 200) URL="$URL_1"
- RAW="$URL_1/plain";;
- esac
- case $(_url_exists "$URL_2") in
- 200) URL="$URL_2"
- RAW="$URL_2/blob/master";;
- esac
+ URL_1="https://git.fridu.us/heckyel/hyperterm"
+ URL_2="https://c.fridu.us/software/hyperterm.git"
+ if [ "$(_url_exists "$URL_1")" -eq 200 ]; then
+ URL="$URL_1"
+ RAW="$URL_1/raw/branch/master"
+ elif [ "$(_url_exists "$URL_2")" -eq 200 ]; then
+ URL="$URL_2"
+ RAW="$URL_2/plain"
+ fi
}
# ----------------------
@@ -81,6 +80,8 @@ function updbashrc() {
case $(_url_exists "$URL") in
200)
# clone '--depth=1' not support cgit
+ msg "Usando: $URL" \
+ "Using: $URL"
(git clone $URL /tmp/hyperterm/ --depth=1 &> /dev/null)
printf '%s\r' "##### (33%)"
sleep 1
diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512
index 1066e33..717aa86 100644
--- a/hyperterm/hyperterm.sha512
+++ b/hyperterm/hyperterm.sha512
@@ -1,6 +1,6 @@
cdfe049ec07f02a1893cda29c13085d06709e09a30b0c2e1111585278315f03139d61080c883cb3fd87f2bf64e05d9b5e5eaaad84c97ced890d83c73eb399fcb ../.bash_profile
04ab2fefad0680b22001f241e2ce772d07eadef206bd09208627d9dc1b4366d190374d439930215db5f5a742f9fe0bba8fcbaf34164a9332ad7e132c70ba9f92 ./hyperterm.sh
-e30b95c0ca1d067106e6b33de5252556191c5c882a3fe3c989598d3a01ed120397b465980905afb976407a3ef2ba0625ad00beb9482ac40cdbac5e6e887c8f0d ./core/update.sh
+abbceb6ae6d2c13f02152334894a09e2f0d9d84a1bfd57a43ade158d25e5ab53da9396c8995a28f9422263299fafe349da09e19311de46b45494454ab517a9ca ./core/update.sh
1cfba599047d84a17ff92b695ebf527a505a30acc9ec21a2b9f410a7ea6dde4b23b5cf62e557d82f2fe9a8980649942424b879ca53baae4d4cb3057681baa7b6 ./core/colors.sh
2036a79215a5434e31f3406bea3f2ffa7e94ffef86c2d1ceb8865db29f19fe7f342f9cab93288f57c75daed36ef146f85d15f8d633931a27d55c3983f55ef15b ./core/git.sh
f3e00b2aa8ab9f3ab44570adaa2520408ed66fd00f551654d60b64a4be3546ec781b7efa39bcd774937e654b6ffb4c7af3f21eeb36caf9c01f82f85cf28e2b4d ./core/languages.sh