aboutsummaryrefslogtreecommitdiffstats
path: root/copy-firmware.sh
diff options
authorKonrad Weihmann <kweihmann@outlook.com>2022-05-09 12:25:02 +0200
committerJosh Boyer <jwboyer@kernel.org>2022-05-31 12:57:56 -0400
commiteaee2dacc2be1609089a1eb4ce574bea8b047d32 (patch)
tree73dc291c5a7a3f527eb90ff2ad93159b80c4b50d /copy-firmware.sh
parent12865e7e4b1b55ee4538a915b89cd05f9a6b2b91 (diff)
Makefile: replace mkdir by install
mkdir -p creates paths that are bound to user's settings and therefore can lead to different file mode bits of the base paths accross different machines. Use install instead, as this tool is not prone to such behavior. Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Diffstat (limited to 'copy-firmware.sh')
-rwxr-xr-xcopy-firmware.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/copy-firmware.sh b/copy-firmware.sh
index 9b46b639..bbacb925 100755
--- a/copy-firmware.sh
+++ b/copy-firmware.sh
@@ -34,7 +34,7 @@ done
grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do
test -f "$f" || continue
$verbose "copying file $f"
- mkdir -p $destdir/$(dirname "$f")
+ install -d $destdir/$(dirname "$f")
cp -d "$f" $destdir/"$f"
done
@@ -42,7 +42,7 @@ grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; d
if test -L "$f"; then
test -f "$destdir/$f" && continue
$verbose "copying link $f"
- mkdir -p $destdir/$(dirname "$f")
+ install -d $destdir/$(dirname "$f")
cp -d "$f" $destdir/"$f"
if test "x$d" != "x"; then
@@ -63,7 +63,7 @@ grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; d
fi
else
$verbose "creating link $f -> $d"
- mkdir -p $destdir/$(dirname "$f")
+ install -d $destdir/$(dirname "$f")
ln -sf "$d" "$destdir/$f"
fi
done