Browse Source

Remove mv flag

Joachim M. Giæver 1 year ago
parent
commit
d21045217c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/hooks/connect-plug-zui-store

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

@@ -15,11 +15,11 @@ if snapctl is-connected zui-store; then
 		lprint "ZUI-store is empty, copying over data: $(ls "${SNAP_DATA}") to «${ZUI_STORE}»"
 		lprint "ZUI-store is empty, copying over data: $(ls "${SNAP_DATA}") to «${ZUI_STORE}»"
 		cp -rf "${SNAP_DATA}/"* "${ZUI_STORE}"
 		cp -rf "${SNAP_DATA}/"* "${ZUI_STORE}"
 		rm -rf "${ZUI_STORE}/.ext-config"
 		rm -rf "${ZUI_STORE}/.ext-config"
-		mv -rf "${ZUI_STORE}/logs" "${ZUI_STORE}/.z2m-logs"
+		mv -f "${ZUI_STORE}/logs" "${ZUI_STORE}/.z2m-logs"
 		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 -rf "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs"
+		mv -f "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs"
 		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