| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function verify_pathToCli { |
| |
| |
| local -a REPODIRS |
| local -a REPOFILES |
| local -a REPOLINKS |
| local FILE='' |
| |
| |
| |
| REPODIRS[0]=/home/centos |
| REPODIRS[1]=/home/centos/bin |
| REPODIRS[2]=${CLI_BASEDIR} |
| |
| |
| |
| REPOFILES[0]=${REPODIRS[2]}/init.sh |
| |
| |
| |
| REPOLINKS[0]=${REPODIRS[1]}/centos-art |
| |
| |
| for FILE in "${REPODIRS[@]}";do |
| cli_checkFiles $FILE 'd' |
| done |
| |
| |
| for FILE in "${REPOFILES[@]}";do |
| cli_checkFiles $FILE 'f' |
| done |
| |
| |
| for FILE in "${REPOLINKS[@]}";do |
| cli_checkFiles $FILE 'h' |
| done |
| |
| } |