diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/oh-copyconfig.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/oh-copyconfig.sh b/src/oh-copyconfig.sh index 4bd3871..2f337f8 100644 --- a/src/oh-copyconfig.sh +++ b/src/oh-copyconfig.sh @@ -35,7 +35,7 @@ if [ ! -f ../config ]; then exit 0 fi -if [ -z "${OH_PLATFORM}" ]; then +if [ -z "${OH_HOST_PLATFORM}" ]; then error 'No target platform defined' fi @@ -64,10 +64,10 @@ while read -r type src dest; do # Make sure the destination directory exists. mkdir -p "$(dirname "${full_dest}")" # Find the config package files. - if [ -d "/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}" ]; then - full_src="/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}/${src}" - elif [ -d "/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}" ]; then - full_src="/usr/share/config/${OH_PLATFORM}/${OH_SRCPKG}/${src}" + if [ -d "/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}" ]; then + full_src="/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}-${OH_PKGVER}/${src}" + elif [ -d "/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}" ]; then + full_src="/usr/share/config/${OH_HOST_PLATFORM}/${OH_SRCPKG}/${src}" else # This shouldn't happen unless the package maintainer neglected to add # the config package to the package's Build-Depends field. |