gyk001 / hexo-qiniu-sync

Hexo七牛同步插件
MIT License
356 stars 41 forks source link

Mac OS X中,在离线模式下软连接有问题。 #26

Closed zhaoyibo closed 7 years ago

zhaoyibo commented 8 years ago

配置如下:

plugins:
  - hexo-qiniu-sync
qiniu:
  offline: true
  sync: true
  bucket: codingon
  access_key: 
  secret_key: 
  dirPrefix: static
  urlPrefix: https://dn-my.qbox.me/static
  local_dir: static
  update_exist: true
  image:
    folder: images
  js:
    folder: js
  css:
    folder: css

运行后报错

$ hexo s
INFO  -----------------------------------------------------------
INFO  qiniu state: offline
INFO  qiniu sync:  false
INFO  qiniu local dir:  static
INFO  qiniu url:   /static
INFO  -----------------------------------------------------------
WARN  qiniu sync is offline mode
ERROR Can't make link fail!
WARN  Maybe do not have permission.
INFO  Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
ERROR Can't make link fail!
WARN  Maybe do not have permission.

然后 sourcepublic 目录下各会创建一个如下的软连接,并且这两个软连接还都是有问题的(循环引用),

$ ll source
lrwxr-xr-x   1 yibo  staff     6B 12 10 11:17 static -> static
$ cd source/static
cd: too many levels of symbolic links: source/static
gyk001 commented 7 years ago

@zhaoyibo 1.4.5版本bug已修复,更新可解决