diff --git a/sos-git.sh b/sos-git.sh index fbd45ae..6768d46 100755 --- a/sos-git.sh +++ b/sos-git.sh @@ -191,7 +191,7 @@ function loadSystemConfiguration() { echo -e "$SOSGIT_EXITSTRING" &> /etc/sostools/git/sos-git.conf fi if [ -d "/etc/sostools/git/sos-git.conf.d/" ]; then - for file in $(/bin/ls --color=never -w 1 "/etc/sostools/git/sos-git.conf.d/");do + for file in $($SOSGIT_LS --color=never -w 1 "/etc/sostools/git/sos-git.conf.d/");do source "/etc/sostools/git/sos-git.conf.d/${file}" done fi @@ -210,7 +210,7 @@ function loadUserConfiguration() { fi fi if [ -d "$HOME/.sostools/git/sos-git.conf.d/" ]; then - for file in $(/bin/ls --color=never -w 1 "$HOME/.sostools/git/sos-git.conf.d/");do + for file in $($SOSGIT_LS --color=never -w 1 "$HOME/.sostools/git/sos-git.conf.d/");do source "$HOME/.sostools/git/sos-git.conf.d/${file}" done fi @@ -293,11 +293,11 @@ function checkFastSettings() { } function chmodConfiguration() { chmod +x "$HOME/.sostools/git/sos-git.conf" &> /dev/null - for file in $(ls --color=never -w 1 "$HOME/.sostools/git/sos-git.conf.d"); do + for file in $($SOSGIT_LS --color=never -w 1 "$HOME/.sostools/git/sos-git.conf.d"); do chmod +x "$HOME/.sostools/git/sos-git.conf.d/$file" done chmod +x "/etc/sostools/git/sos-git.conf" &> /dev/null - for file in $(ls --color=never -w 1 "/etc/sostools/git/sos-git.conf.d"); do + for file in $($SOSGIT_LS --color=never -w 1 "/etc/sostools/git/sos-git.conf.d"); do chmod +x "/etc/sostools/git/sos-git.conf.d/$file" done } @@ -382,11 +382,11 @@ function collectFiles() { echo "$(pwd)" &> $SOSGIT_TMP/sosgit_collectfiles_pwd cd "$1" export "SOSGIT_EXITSTRING=" - for file in $(ls --color=never -w 1 "$1"); do + for file in $($SOSGIT_LS --color=never -w 1 "$1"); do if [ "$SOSGIT_EXITSTRING" == "" ]; then - export "SOSGIT_EXITSTRING=$(ls --color=never -w 1 $(pwd)/$file)" + export "SOSGIT_EXITSTRING=$($SOSGIT_LS --color=never -w 1 $(pwd)/$file)" else - export "SOSGIT_EXITSTRING= $(ls --color=never -w 1 $(pwd)/$file)" + export "SOSGIT_EXITSTRING= $($SOSGIT_LS --color=never -w 1 $(pwd)/$file)" fi done cd "$(cat ${SOSGIT_TMP}/sosgit_collectfiles_pwd)"