Browse Source

Wrap path

Joachim M. Giæver 1 year ago
parent
commit
5ade4cef27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/helper/functions

+ 1 - 1
src/helper/functions

@@ -41,7 +41,7 @@ function same_network_key {
 
 function cpy_2_zui {
 	if snapctl is-connected zui-store; then
-		if [ "$(ls ${SNAP_COMMON}/zui-store) | wc -l" -ne 0 ]; then
+		if [ "$(ls "${SNAP_COMMON}/zui-store") | wc -l" -ne 0 ]; then
 			echo "The zui-store (${SNAP_COMMON}/zui-store) is not empty, exiting..." >&2
 			exit 1
 		elif [ -d "${SNAP_COMMON}/zui-store" ]; then