X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-win32-loader;h=2006a195578cfa9bf796d3f65e0d64bb8e04ab07;hb=abcd0f018dc49a218ce70d22e97fc7b654fcf1c8;hp=fff19742edd2696ab059bc2fb6143052fd82e7da;hpb=5eca5228fd1d2418bd72c8289ff9119e02bb641c;p=dak.git diff --git a/scripts/debian/byhand-win32-loader b/scripts/debian/byhand-win32-loader index fff19742..2006a195 100755 --- a/scripts/debian/byhand-win32-loader +++ b/scripts/debian/byhand-win32-loader @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -u set -e @@ -45,7 +45,9 @@ if [ ! -d "$TARGET" ]; then fi # Put said file into the tools directory -cp "$WIN32_LOADER_FILE" "${TARGET}${TARGET_FILENAME}" +# Use --remove-destination to avoid problems with the fact that the target may +# be a hardlink and in that case we'd update multiple suites together +cp --remove-destination "$WIN32_LOADER_FILE" "${TARGET}${TARGET_FILENAME}" # Chmod it correctly chmod 0644 "${TARGET}${TARGET_FILENAME}"