diff options
-rwxr-xr-x | helpers/lh_binary_debian-installer | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_binary_debian-installer b/helpers/lh_binary_debian-installer index c0bb74c7f..e579eec28 100755 --- a/helpers/lh_binary_debian-installer +++ b/helpers/lh_binary_debian-installer @@ -216,7 +216,12 @@ Download_file () { fi fi - cp -fl "${_LH_CACHE_FILE}" "${_LH_TARGET}" + if [ "$(stat --printf %d "${_LH_CACHE_DIR}")" = "$(stat --printf %d ./)" ] + then + CP_OPTIONS="-l" + fi + + cp -f ${CP_OPTIONS} -- "${_LH_CACHE_FILE}" "${_LH_TARGET}" } VMLINUZ_DI="vmlinuz" |