fix the bug in archive log shell script.