ソースを参照

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
 		if [[ ! -d "${ZUI_STORE}/.z2m-logs" ]]; then
 			mkdir "${ZUI_STORE}/.z2m-logs"
 			mkdir "${ZUI_STORE}/.z2m-logs"
 		fi
 		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"
 		lprint "Everything seems to be in place now... Exit connection the initiate the daemonizing voting"
 		exit 1
 		exit 1
 	else
 	else