소스 검색

Add ignore to mv

Joachim M. Giæver 2 년 전
부모
커밋
ce1b8bbff3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/hooks/connect-plug-zui-store

+ 1 - 1
src/hooks/connect-plug-zui-store

@@ -19,7 +19,7 @@ if snapctl is-connected zui-store; then
 		if [[ ! -d "${ZUI_STORE}/.z2m-logs" ]]; then
 			mkdir "${ZUI_STORE}/.z2m-logs"
 		fi
-		mv -f "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs"
+		mv -f "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs" 2> /dev/null; true
 		lprint "Everything seems to be in place now... Exit connection the initiate the daemonizing voting"
 		exit 1
 	else