Compare output rather than command

前端 未结 3 1099
鱼传尺愫
鱼传尺愫 2020-12-06 05:57

Trying to create a script to read a remote file and check the md5 checksum and alert if a mismatch yet getting an error I can\'t understand.

#!/bin/sh
REMOTE         


        
3条回答
  •  不思量自难忘°
    2020-12-06 06:14

    [ isn't bash syntax, it is a command. So you must have a space between it and its first argument $LOCALMD5. There also needs to be a space between $REMOTEMD5 and ].

提交回复
热议问题