Favoring BSD based bash, ( os x )
This commit is contained in:
parent
82462832ef
commit
27aee4d5c9
@ -13,7 +13,7 @@ function __func_help() {
|
|||||||
SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/sources
|
SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/sources
|
||||||
|
|
||||||
echo "Begin source:"
|
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
|
do
|
||||||
echo " Source:" $( basename $i )
|
echo " Source:" $( basename $i )
|
||||||
. $i
|
. $i
|
||||||
|
@ -95,8 +95,9 @@ __go_nav() {
|
|||||||
LISTOF=''
|
LISTOF=''
|
||||||
for i in "${!PWDA[@]}"
|
for i in "${!PWDA[@]}"
|
||||||
do
|
do
|
||||||
|
MARK=$i
|
||||||
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
|
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
|
||||||
MARK=$i
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${PWDA[$i]}" ]]; then
|
if [[ -n "${PWDA[$i]}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user