所以我试图运行一个包含这部分代码的bash脚本:
66 # Create a .id random identifier file if doesn't exist
67 cd $CARD_MOUNT_POINT
68 if [ ! -f *.id ]; then
69 random=$(echo $RANDOM)
70 touch $(date -d "today" +"%Y%m%d%H%M")-$random.id
71 fi
72 ID_FILE=$(ls *.id)
73 ID="${ID_FILE%.*}"
74 cd
我收到以下错误:
line 68[: 201805301529-30707.id: binary operator expected rsnc error: some
files/attrs were not transferred (see previous errors) (code 23) at
main.c(1196) [sender=3.1.2]
任何人都可以看到代码中可能导致此错误的任何错误吗?
非常感谢,
塞巴斯蒂安