浏览代码

Re-build instead

Joachim M. Giæver 3 年之前
父节点
当前提交
71455f3441
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/hooks/post-refresh

+ 3 - 1
src/hooks/post-refresh

@@ -20,4 +20,6 @@ if [ -d $(dirname "${PRIORITY_DIR}") ]; then
 fi
 
 # Update references to the external config directory
-sed -iE "s#$(dirname ${SNAP_DATA})/(current|[0-9]+)#${SNAP_DATA}/#g" $ZWAVEJS_EXTERNAL_CONFIG/devices/index.json
+# sed -iE "s#$(dirname ${SNAP_DATA})/(current|[0-9]+)#${SNAP_DATA}/#g" $ZWAVEJS_EXTERNAL_CONFIG/devices/index.json
+# Discussed with Al Calzone, lead dev of Zwavejs, can just be deleted and re-build
+rm "${ZWAVEJS_EXTERNAL_CONFIG}/devices/index.json"