main/output
This commit is contained in:
parent
e305827808
commit
d691f67581
1 changed files with 10 additions and 10 deletions
20
sh/main.sh
20
sh/main.sh
|
@ -28,12 +28,12 @@ main_source_directory() {
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
count=0
|
count=0
|
||||||
echo
|
#echo
|
||||||
echo ". ${path}"
|
#echo ". ${path}"
|
||||||
for module in ${modules}; do
|
for module in ${modules}; do
|
||||||
count=$((count + 1))
|
count=$((count + 1))
|
||||||
printf "%02d" "${count}"
|
#printf "%02d" "${count}"
|
||||||
echo " ${module%.sh}"
|
#echo " ${module%.sh}"
|
||||||
module="${path}/${module}"
|
module="${path}/${module}"
|
||||||
if [ "${module}" != "${ENV}" ]; then
|
if [ "${module}" != "${ENV}" ]; then
|
||||||
. "${module}"
|
. "${module}"
|
||||||
|
@ -47,7 +47,7 @@ main_source_directory() {
|
||||||
done
|
done
|
||||||
IFS="${ifs}"
|
IFS="${ifs}"
|
||||||
else
|
else
|
||||||
echo "Not a directory: ${path}"
|
#echo "Not a directory: ${path}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ main_source_file() {
|
||||||
if [ -f "${path}" ]; then
|
if [ -f "${path}" ]; then
|
||||||
main_source_directory "$(dirname "${path}")"
|
main_source_directory "$(dirname "${path}")"
|
||||||
else
|
else
|
||||||
echo "Not a file: ${path}"
|
#echo "Not a file: ${path}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ main_source_file "${ENV}"
|
||||||
|
|
||||||
main_source_directory "${SH_USER}"
|
main_source_directory "${SH_USER}"
|
||||||
|
|
||||||
sh_log "" \
|
#sh_log "" \
|
||||||
"sh_… = shell functions" \
|
# "sh_… = shell functions" \
|
||||||
"a__… = aliases" \
|
# "a__… = aliases" \
|
||||||
"u__… = user"
|
# "u__… = user"
|
||||||
|
|
Loading…
Reference in a new issue