Skip to content

Commit 4f0d539

Browse files
committed
Upstream.
1 parent e329dbf commit 4f0d539

File tree

2 files changed

+38
-11
lines changed

2 files changed

+38
-11
lines changed

ubiquitous_bash.sh

+37-10
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
3636
#export ub_setScriptChecksum_disable='true'
3737
( [[ -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'
3838
export ub_setScriptChecksum_header='2591634041'
39-
export ub_setScriptChecksum_contents='1305406043'
39+
export ub_setScriptChecksum_contents='258417895'
4040

4141
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
4242
# WARNING: Performance may be crucial here.
@@ -31654,7 +31654,41 @@ _test_croc_upstream() {
3165431654
curl -fsSL 'https://getcroc.schollz.com' | bash
3165531655
echo
3165631656
}
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
3165731684

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+
}
3165831692

3165931693
# https://github.com/schollz/croc
3166031694
_test_croc() {
@@ -31665,17 +31699,10 @@ _test_croc() {
3166531699

3166631700
if [[ "$nonet" != "true" ]] && ! _if_cygwin
3166731701
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
3167631703
fi
3167731704

31678-
_wantSudo && _wantGetDep croc
31705+
#_wantSudo && _wantGetDep croc
3167931706

3168031707
! _typeDep croc && echo 'warn: missing: croc'
3168131708

0 commit comments

Comments
 (0)