Skip to content

Commit eaf9ed5

Browse files
committed
Upstream.
1 parent 636035c commit eaf9ed5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

_lib/ubiquitous_bash

ubiquitous_bash.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _ub_cksum_special_derivativeScripts_contents() {
3939
#export ub_setScriptChecksum_disable='true'
4040
( [[ -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'
4141
export ub_setScriptChecksum_header='3620520443'
42-
export ub_setScriptChecksum_contents='55081720'
42+
export ub_setScriptChecksum_contents='812326946'
4343

4444
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
4545
# WARNING: Performance may be crucial here.
@@ -18898,13 +18898,19 @@ _gitPull_ubiquitous() {
1889818898
}
1889918899

1890018900
_gitClone_ubiquitous() {
18901+
local functionEntryPWD="$PWD"
18902+
1890118903
local currentExitStatus_gitBest_clone="0"
1890218904
local currentExitStatus_gitBest_submodule_update="0"
1890318905
#git clone --depth 1 [email protected]:mirage335/ubiquitous_bash.git
1890418906
_gitBest clone --recursive --depth 1 [email protected]:mirage335/ubiquitous_bash.git
1890518907
currentExitStatus_gitBest_clone="$?"
18908+
18909+
! cd ubiquitous_bash && _messagePlain_bad 'bad: cd ubiquitous_bash' && return 1
1890618910
_gitBest submodule update --recursive
1890718911
currentExitStatus_gitBest_submodule_update="$?"
18912+
! cd "$functionEntryPWD" && _messagePlain_bad 'bad: cd '"$functionEntryPWD" && return 1
18913+
1890818914
[[ "$currentExitStatus_gitBest_clone" != "0" ]] && return "$currentExitStatus_gitBest_clone"
1890918915
[[ "$currentExitStatus_gitBest_submodule_update" != "0" ]] && return "$currentExitStatus_gitBest_submodule_update"
1891018916
return 0

0 commit comments

Comments
 (0)