diff --git a/gcc/deploy-linux.sh b/gcc/deploy-linux.sh index a8ac8ea..93fb09b 100644 --- a/gcc/deploy-linux.sh +++ b/gcc/deploy-linux.sh @@ -151,8 +151,8 @@ patchelf --set-rpath '$ORIGIN/../lib' $_EXECUTABLE _APPDIR=$2 cd ${_APPDIR} -cp -nvs $(find -type f -regex '.*/icons/.*\.svg' || head -n 1) ./ -cp -nvs $(find -type f -regex '.*/applications/.*\.desktop' || head -n 1) ./ +cp -nvs $(find -type f -regex '.*/icons/.*\.svg' -printf '%P\n' || head -n 1) ./ +cp -nvs $(find -type f -regex '.*/applications/.*\.desktop' -printf '%P\n' || head -n 1) ./ if [ "${_NOT_FOUND}" != "" ]; then >&2 echo "WARNING: failed to find the following libraries:"