Commit 823b10c9 authored by Marco Mariani's avatar Marco Mariani

pbs: fixed '==' in bash code

parent f4691c80
...@@ -136,7 +136,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback): ...@@ -136,7 +136,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback):
# in case of manual changes to the backup repository. # in case of manual changes to the backup repository.
CORRUPTED_ARGS="" CORRUPTED_ARGS=""
if [ "$1" == "--fix-corrupted" ]; then if [ "$1" = "--fix-corrupted" ]; then
VERIFY=$($RDIFF_BACKUP --verify $BACKUP_DIR 2>&1 >/dev/null) VERIFY=$($RDIFF_BACKUP --verify $BACKUP_DIR 2>&1 >/dev/null)
echo "$VERIFY" | egrep "$CORRUPTED_MSG" | sed "s/$CORRUPTED_MSG//g" > $CORRUPTED_FILE echo "$VERIFY" | egrep "$CORRUPTED_MSG" | sed "s/$CORRUPTED_MSG//g" > $CORRUPTED_FILE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment