Browse Source

Add ignore to mv

Joachim M. Giæver 1 year ago
parent
commit
ce1b8bbff3
1 changed files with 1 additions and 1 deletions
  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