Favoring BSD based bash, ( os x )

This commit is contained in:
斟酌 鵬兄 2014-12-21 20:30:42 +08:00
parent 82462832ef
commit 27aee4d5c9
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function __func_help() {
SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/sources
echo "Begin source:"
for i in $( find $SDIR -maxdepth 1 -type f -executable | sort )
for i in $( find $SDIR -maxdepth 1 -type f -perm +111 | sort )
do
echo " Source:" $( basename $i )
. $i

View File

@ -95,8 +95,9 @@ __go_nav() {
LISTOF=''
for i in "${!PWDA[@]}"
do
MARK=$i
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
MARK=$i
break
fi
if [[ -n "${PWDA[$i]}" ]]; then