Skip to content

Commit 6da2c71

Browse files
committed
update stdfunc.
1 parent 5deb73f commit 6da2c71

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

env_init/update-git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if [ -d ${DESTDIR} ]; then
5656
pushd . &>/dev/null
5757
cd ${DESTDIR}
5858

59-
for dir in `find "${DESTDIR}" -maxdepth 2 -name ".git" -type d`; do
59+
for dir in `find "${DESTDIR}" -maxdepth 3 -name ".git" -type d`; do
6060
pdir=${dir%/*}
6161
_notice "Start update code in ${pdir} ..."
6262
cd "$dir/../" && git pull --recurse-submodules

stdfunc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ resolve_link() {
365365
$(type -p greadlink readlink | head -1) "$1"
366366
}
367367

368+
readlink_mac() {
369+
python -c "import os; print(os.path.realpath('$1'))"
370+
}
371+
368372
abs_dirname() {
369373
local cwd="$(pwd)"
370374
local path="$1"
@@ -390,5 +394,6 @@ expand_path() {
390394
#################################
391395
#assert_not_root_user
392396
#assert_root_user
397+
readlink_mac "./"
393398
error "Bad news"
394399
writefile "test" "hello"

tree.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)