Revision 63

bin/zfs-replica (revision 63)
212 212
    then
213 213
       while read line
214 214
       do
215
            echo $line|sed -e "s:lastsnapshotreplicated=.*$:lastsnapshotreplicated=$snapshot2replicate:g"
215
            echo $line|sed -e "s:lastsnapshotreplicated=.*$:lastsnapshotreplicated=$snapshot2replicate:g >>$TEMP_FILE_NAME"
216 216
       done <<< "$(cat $FILE_NAME)"
217 217
       /bin/rm $FILE_NAME
218 218
       /bin/mv $TEMP_FILE_NAME $FILE_NAME

Also available in: Unified diff