forked from ISTI-ansible-roles/ansible-roles
Fix the script so that the algorithms that have spaces in their name are handled correctly.
This commit is contained in:
parent
9d8ae525a2
commit
1b36211240
|
@ -77,7 +77,7 @@ function algorithms_updater() {
|
|||
ALGO_PRESENT=
|
||||
ALGO_NAME=$( echo "$algo" | awk -F \| '{ print $1 }' )
|
||||
ALGO_BODY=$( echo "$algo" | awk -F \| '{ print $2 }' )
|
||||
ALGO_LINE=$( grep $ALGO_NAME $ALGORITHMS_INSTALLED_FILE )
|
||||
ALGO_LINE=$( egrep ^"$ALGO_NAME" $ALGORITHMS_INSTALLED_FILE )
|
||||
ALGO_PRESENT=$?
|
||||
if [ $ALGO_PRESENT -ne 0 ] ; then
|
||||
echo "logger 'algorithms-updater: running the add command of algorithm $ALGO_NAME'" >> $ALGORITHMS_TEMP_SCRIPT.body_
|
||||
|
|
Loading…
Reference in New Issue