Fix the script so that the algorithms that have spaces in their name are handled correctly.

This commit is contained in:
Andrea Dell'Amico 2017-07-25 18:29:54 +02:00
parent 9d8ae525a2
commit 1b36211240
1 changed files with 1 additions and 1 deletions

View File

@ -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_