connect-plug-zui-store 368 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. ZUI_STORE="${SNAP_COMMON}/zui-store"
  3. echo "$(ls -al ${ZUI_STORE})" >&2
  4. if [ ! -d "${ZUI_STORE}" ]; then
  5. echo "Missing store-dir for ZUI. Failed, exiting...." >&2
  6. exit 1
  7. else
  8. "Have store dir, copy over" >&2
  9. fi
  10. if [ $(ls "${ZUI_STORE}" | wc -l) -eq 0 ]; then
  11. cpy_2_zui && sudo snap stop "${SNAP_NAME}" && sudo snap disable "${SNAP_NAME}"
  12. fi