diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-06-28 11:08:33 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-06-28 07:44:18 +0000 |
commit | 6e45763c3292e7e0276868e7ee9e439d818beb2a (patch) | |
tree | 95c6e0a567ba6a67ae3a548159207820ff8dd9e8 /scripts | |
parent | a38dee3c2e75057034a1eea88b309df3abd5bfe5 (diff) | |
download | meta-boot2qt-6e45763c3292e7e0276868e7ee9e439d818beb2a.tar.gz |
Fix find fails with permission denied
configure-qtcreator.sh failed with errors:
find: ‘/opt/b2qt/2.2.1/sysroots/aarch64-poky-linux/var/cache/cups’: Permission denied
find: ‘/opt/b2qt/2.2.1/sysroots/aarch64-poky-linux/var/spool/cups’: Permission denied
find: ‘/opt/b2qt/2.2.1/sysroots/aarch64-poky-linux/home/root’: Permission denied
find: ‘/opt/b2qt/2.2.1/sysroots/aarch64-poky-linux/etc/cups/ssl’: Permission denied
Change-Id: I4e8098227852b8d77b4b57a68d9e0b95165cb4fe
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/configure-qtcreator.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/configure-qtcreator.sh b/scripts/configure-qtcreator.sh index d6e9c07..7386f70 100755 --- a/scripts/configure-qtcreator.sh +++ b/scripts/configure-qtcreator.sh | |||
@@ -85,7 +85,7 @@ fi | |||
85 | source $CONFIG | 85 | source $CONFIG |
86 | 86 | ||
87 | MKSPEC="devices/linux-oe-generic-g++" | 87 | MKSPEC="devices/linux-oe-generic-g++" |
88 | MKSPECPATH=$(find ${OECORE_TARGET_SYSROOT} -name $(basename ${MKSPEC})) | 88 | MKSPECPATH=$(find ${OECORE_TARGET_SYSROOT} -name $(basename ${MKSPEC}) 2>/dev/null || true) |
89 | if [ ! -d "${MKSPECPATH}" ]; then | 89 | if [ ! -d "${MKSPECPATH}" ]; then |
90 | echo "Error: could not find mkspec ${MKSPEC} from the toolchain" | 90 | echo "Error: could not find mkspec ${MKSPEC} from the toolchain" |
91 | exit 1 | 91 | exit 1 |