@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
36
36
#export ub_setScriptChecksum_disable='true'
37
37
( [[ -e "$0".nck ]] || [[ "${BASH_SOURCE[0]}" != "${0}" ]] || [[ "$1" == '--profile' ]] || [[ "$1" == '--script' ]] || [[ "$1" == '--call' ]] || [[ "$1" == '--return' ]] || [[ "$1" == '--devenv' ]] || [[ "$1" == '--shell' ]] || [[ "$1" == '--bypass' ]] || [[ "$1" == '--parent' ]] || [[ "$1" == '--embed' ]] || [[ "$1" == '--compressed' ]] || [[ "$0" == "/bin/bash" ]] || [[ "$0" == "-bash" ]] || [[ "$0" == "/usr/bin/bash" ]] || [[ "$0" == "bash" ]] ) && export ub_setScriptChecksum_disable='true'
38
38
export ub_setScriptChecksum_header='2591634041'
39
- export ub_setScriptChecksum_contents='1305406043 '
39
+ export ub_setScriptChecksum_contents='258417895 '
40
40
41
41
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
42
42
# WARNING: Performance may be crucial here.
@@ -31654,7 +31654,41 @@ _test_croc_upstream() {
31654
31654
curl -fsSL 'https://getcroc.schollz.com' | bash
31655
31655
echo
31656
31656
}
31657
+ _test_croc_upstream_static-sequence() {
31658
+ _start
31659
+
31660
+ _mustGetSudo
31661
+
31662
+ cd "$safeTmp"
31663
+
31664
+ type croc > /dev/null 2>&1 && return 0
31665
+
31666
+ # TODO: MAINTENANCE .
31667
+ curl -L 'https://github.com/schollz/croc/releases/download/v10.2.1/croc_v10.2.1_Linux-64bit.tar.gz' -o croc_v10.2.1_Linux-64bit.tar.gz
31668
+
31669
+ tar xf croc_v10.2.1_Linux-64bit.tar.gz
31670
+
31671
+ sudo -n mkdir -p /usr/local/bin
31672
+ sudo -n mv -f croc /usr/local/bin/croc
31673
+ sudo -n chmod 755 /usr/local/bin/croc
31674
+
31675
+ sudo -n mkdir -p /usr/local/share/doc/croc
31676
+ sudo -n mv -f LICENSE /usr/local/share/doc/croc/LICENSE
31677
+
31678
+ _stop
31679
+ }
31680
+ _test_croc_upstream_verbose() {
31681
+ _messagePlain_request 'ignore: upstream progress ->'
31682
+
31683
+ curl -fsSL 'https://getcroc.schollz.com' | head -n 30
31657
31684
31685
+ _test_croc_upstream "$@"
31686
+ #_test_croc_upstream_beta "$@"
31687
+
31688
+ ! _typeDep croc && _test_croc_upstream_static-sequence
31689
+
31690
+ _messagePlain_request 'ignore: <- upstream progress'
31691
+ }
31658
31692
31659
31693
# https://github.com/schollz/croc
31660
31694
_test_croc() {
@@ -31665,17 +31699,10 @@ _test_croc() {
31665
31699
31666
31700
if [[ "$nonet" != "true" ]] && ! _if_cygwin
31667
31701
then
31668
- _messagePlain_request 'ignore: upstream progress ->'
31669
-
31670
- curl -fsSL 'https://getcroc.schollz.com' | head -n 30
31671
-
31672
- _test_croc_upstream "$@"
31673
- #_test_croc_upstream_beta "$@"
31674
-
31675
- _messagePlain_request 'ignore: <- upstream progress'
31702
+ _test_croc_upstream_verbose
31676
31703
fi
31677
31704
31678
- _wantSudo && _wantGetDep croc
31705
+ # _wantSudo && _wantGetDep croc
31679
31706
31680
31707
! _typeDep croc && echo 'warn: missing: croc'
31681
31708
0 commit comments