Skip to content

Commit

Permalink
stage2/00-copies-and-fills/02-run.sh: Fix re-runs of script (RPi-Dist…
Browse files Browse the repository at this point in the history
…ro#301)

Check that file exist before move.
  • Loading branch information
xranby authored and XECDesign committed Jul 2, 2019
1 parent 3db1168 commit 57ef9b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stage2/00-copies-and-fills/02-run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash -e

mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
if [ -f "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
fi

0 comments on commit 57ef9b8

Please sign in to comment.