View Ticket
2018-08-01
02:59 New ticket [dea848300b] kitcreator (common.sh) occasionally failed in Windows.. artifact: 68f72ea668 user: anonymous

Ticket Hash: dea848300b5e2d510bbbc226870d5a0088a008d0
Title: kitcreator (common.sh) occasionally failed in Windows.
Status: Open Type: Build Problem
Severity: Minor Priority:
Subsystem: Resolution:
Last Modified: 2018-08-01 02:59:35
Version Found In: 0.11.0
Description:
kitcreator occasionally stops with an error regarding access authority. If I change common.sh with the following patch, this error no longer occurs.

I tried to run kitcreator on MSYS2 with MinGW-w64 toolchain in Windows7 32-bit and Windows10 64-bit.

diff -Ncr kitcreator-0.11.0/common/common.sh kitcreator-0.11.0-tmp/common/common.sh
*** kitcreator-0.11.0/common/common.sh	2018-06-04 02:40:33.000000000 +0900
--- kitcreator-0.11.0-tmp/common/common.sh	2018-07-18 09:44:30.558362800 +0900
***************
*** 109,117 ****
  			shopt -s dotglob
  			dir="$(echo ./*)"
  			if [ -d "${dir}" ]; then
! 				mv "${dir}"/* . || exit 1

! rmdir "${dir}" || exit 1 fi

exit 0 --- 109,117 ---- shopt -s dotglob dir="$(echo ./*)" if [ -d "${dir}" ]; then ! cp -a "${dir}"/* . || exit 1

! rm -fr "${dir}" || exit 1 fi

exit 0