소스 검색

Search for index file

Joachim M. Giæver 2 년 전
부모
커밋
e4b342715c
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/hooks/post-refresh

+ 2 - 3
src/hooks/post-refresh

@@ -24,7 +24,6 @@ if [ -d "${SNAP_DATA}" ]; 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
 # Discussed with Al Calzone, lead dev of Zwavejs, can just be deleted and re-build
-EXT_CONFIG_DIR="${ZWAVEJS_EXTERNAL_CONFIG-${SNAP_DATA}/.ext-config}"
-rm -f "${EXT_CONFIG_DIG}/devices/index.json"
+EXT_CONFIG_DIR_INDEX="$(find "${SNAP_DATA}" -path *.ext-config/devices/index.json -print0 -quit)"
+rm -f "${EXT_CONFIG_DIR_INDEX}"