Browse Source

Add slash to only copy folder content and not the whole folder

Joachim M. Giæver 1 year ago
parent
commit
19d4897a7d
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

@@ -13,7 +13,7 @@ if snapctl is-connected zui-store; then
 		exit 1
 	elif [ -d "${ZUI_STORE}" ]; then
 		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"
 		mv -rf "${ZUI_STORE}/logs" "${ZUI_STORE}/.z2m-logs"
 		if [[ ! -d "${ZUI_STORE}/.z2m-logs" ]]; then